mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
380384ac0e
commit
68b0f4e8b3
2 changed files with 36 additions and 0 deletions
|
|
@ -1255,6 +1255,12 @@ func autoFixIndex() {
|
|||
})
|
||||
|
||||
size := len(paths)
|
||||
|
||||
redundantPaths := treenode.GetRedundantPaths(box.ID, paths)
|
||||
for _, p := range redundantPaths {
|
||||
treenode.RemoveBlockTreesByPathPrefix(p)
|
||||
}
|
||||
|
||||
missingPaths := treenode.GetNotExistPaths(box.ID, paths)
|
||||
for i, p := range missingPaths {
|
||||
reindexTreeByPath(box.ID, p, i, size)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue