mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-05-05 18:09:42 -05:00
🎨 重建索引细节进度推送展现 https://github.com/siyuan-note/siyuan/issues/5890
This commit is contained in:
+2
-1
@@ -98,12 +98,13 @@ func flushTreeQueue() {
|
||||
return
|
||||
}
|
||||
|
||||
context := map[string]interface{}{CtxPushMsg: CtxPushMsgToStatusBar}
|
||||
boxes := hashset.New()
|
||||
for _, op := range ops {
|
||||
switch op.action {
|
||||
case "upsert":
|
||||
tree := op.upsertTree
|
||||
if err = upsertTree(tx, tree); nil != err {
|
||||
if err = upsertTree(tx, tree, context); nil != err {
|
||||
logging.LogErrorf("upsert tree [%s] into database failed: %s", tree.Box+tree.Path, err)
|
||||
}
|
||||
boxes.Add(op.upsertTree.Box)
|
||||
|
||||
Reference in New Issue
Block a user