🎨 tree not found appears when rebuilding index https://github.com/siyuan-note/siyuan/issues/11036

This commit is contained in:
Daniel 2024-04-14 22:16:46 +08:00
parent 1ae39777a6
commit 16c665bfa7
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 16 additions and 12 deletions

View file

@ -506,14 +506,15 @@ func FullReindex() {
}
func fullReindex() {
util.PushMsg(Conf.Language(35), 7*1000)
util.PushEndlessProgress(Conf.language(35))
defer util.PushClearProgress()
WaitForWritingFiles()
if err := sql.InitDatabase(true); nil != err {
os.Exit(logging.ExitCodeReadOnlyDatabase)
return
}
treenode.InitBlockTree(true)
sql.IndexIgnoreCached = false
openedBoxes := Conf.GetOpenedBoxes()