This commit is contained in:
parent
a0f92bd836
commit
7bd973deca
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue