mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 重建索引细节进度推送展现 https://github.com/siyuan-note/siyuan/issues/5890
This commit is contained in:
parent
fbe44a0aa0
commit
9a7f61f715
10 changed files with 103 additions and 27 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue