浏览代码

:art: Push database index commit event https://github.com/siyuan-note/siyuan/issues/8814

Daniel 1 年之前
父节点
当前提交
d800fc169e
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      kernel/sql/queue.go

+ 4 - 0
kernel/sql/queue.go

@@ -151,6 +151,10 @@ func FlushQueue() {
 	if 7000 < 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) {