mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 06:11:24 +08:00
🎨 Push database index commit event https://github.com/siyuan-note/siyuan/issues/8814
This commit is contained in:
parent
cc447681c0
commit
d800fc169e
@ -151,6 +151,10 @@ func FlushQueue() {
|
|||||||
if 7000 < elapsed {
|
if 7000 < elapsed {
|
||||||
logging.LogInfof("database op tx [%dms]", elapsed)
|
logging.LogInfof("database op tx [%dms]", elapsed)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Push database index commit event https://github.com/siyuan-note/siyuan/issues/8814
|
||||||
|
evt := util.NewCmdResult("databaseIndexCommit", 0, util.PushModeBroadcast)
|
||||||
|
util.PushEvent(evt)
|
||||||
}
|
}
|
||||||
|
|
||||||
func execOp(op *dbQueueOperation, tx *sql.Tx, context map[string]interface{}) (err error) {
|
func execOp(op *dbQueueOperation, tx *sql.Tx, context map[string]interface{}) (err error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user