🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113

This commit is contained in:
Liang Ding 2023-01-23 11:48:35 +08:00
parent 6ed1c5dc1c
commit a83a08bdb5
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
9 changed files with 32 additions and 77 deletions

View file

@ -494,9 +494,12 @@ func fullReindex() {
}
treenode.InitBlockTree(true)
sql.IndexMode()
defer sql.NormalMode()
openedBoxes := Conf.GetOpenedBoxes()
for _, openedBox := range openedBoxes {
index(openedBox.ID, true)
index(openedBox.ID)
}
IndexRefs()
treenode.SaveBlockTree(true)