This commit is contained in:
Daniel 2024-03-15 22:53:37 +08:00
parent 04b61dc7eb
commit 6feabe74c8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 13 additions and 19 deletions

View file

@ -170,7 +170,7 @@ func index(boxID string) {
cache.PutDocIAL(file.path, docIAL)
treenode.IndexBlockTree(tree)
sql.IndexTreeQueue(box.ID, file.path)
sql.IndexTreeQueue(tree)
util.IncBootProgress(bootProgressPart, fmt.Sprintf(Conf.Language(92), util.ShortPathForBootingDisplay(tree.Path)))
if 1 < i && 0 == i%64 {
util.PushStatusBar(fmt.Sprintf(Conf.Language(88), i, (len(files))-i))

View file

@ -470,7 +470,7 @@ func reindexTree0(tree *parse.Tree, i, size int) {
indexWriteJSONQueue(tree)
} else {
treenode.IndexBlockTree(tree)
sql.IndexTreeQueue(tree.Box, tree.Path)
sql.IndexTreeQueue(tree)
}
if 0 == i%64 {

View file

@ -307,7 +307,7 @@ func removeIndexes(removeFilePaths []string) (removeRootIDs []string) {
util.PushStatusBar(msg)
treenode.RemoveBlockTreesByRootID(block.RootID)
sql.RemoveTreeQueue(block.BoxID, block.RootID)
sql.RemoveTreeQueue(block.RootID)
}
}