mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -1227,7 +1227,16 @@ func AutoFixIndex() {
|
||||
}
|
||||
}
|
||||
|
||||
var autoFixLock = sync.Mutex{}
|
||||
|
||||
func autoFixIndex() {
|
||||
if util.IsMutexLocked(&autoFixLock) {
|
||||
return
|
||||
}
|
||||
|
||||
autoFixLock.Lock()
|
||||
defer autoFixLock.Unlock()
|
||||
|
||||
rootUpdated := treenode.GetRootUpdated()
|
||||
for rootID, updated := range rootUpdated {
|
||||
root := sql.GetBlock(rootID)
|
||||
|
||||
Reference in New Issue
Block a user