This commit is contained in:
Liang Ding 2023-01-09 17:37:28 +08:00
parent 5a09669d3a
commit 9474f558ad
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 24 additions and 4 deletions

View file

@ -1253,10 +1253,9 @@ func autoFixIndex() {
})
size := len(paths)
for i, p := range paths {
if nil == treenode.GetBlockTreeRootByPath(box.ID, p) {
reindexTreeByPath(box.ID, p, i, size)
}
missingPaths := treenode.GetNotExistPaths(box.ID, paths)
for i, p := range missingPaths {
reindexTreeByPath(box.ID, p, i, size)
}
}