mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-16 21:55:29 +01:00
🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113
This commit is contained in:
parent
72093f7e2e
commit
a452015ded
3 changed files with 5 additions and 25 deletions
|
|
@ -393,7 +393,7 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
continue
|
||||
}
|
||||
|
||||
treenode.IndexBlockTree(tree)
|
||||
treenode.ReindexBlockTree(tree)
|
||||
sql.UpsertTreeQueue(tree)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -86,11 +86,13 @@ func index(boxID string) {
|
|||
updated := util.TimeFromID(tree.Root.ID)
|
||||
tree.Root.SetIALAttr("updated", updated)
|
||||
docIAL["updated"] = updated
|
||||
writeJSONQueue(tree)
|
||||
if writeErr := filesys.WriteTree(tree); nil != writeErr {
|
||||
logging.LogErrorf("write tree [%s] failed: %s", tree.Path, writeErr)
|
||||
}
|
||||
}
|
||||
|
||||
cache.PutDocIAL(file.path, docIAL)
|
||||
treenode.IndexBlockTree(tree)
|
||||
treenode.ReindexBlockTree(tree)
|
||||
sql.UpsertTreeQueue(tree)
|
||||
|
||||
util.IncBootProgress(bootProgressPart, fmt.Sprintf(Conf.Language(92), util.ShortPathForBootingDisplay(tree.Path)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue