diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go index ce90b5177..2f992bd8c 100644 --- a/kernel/model/transaction.go +++ b/kernel/model/transaction.go @@ -1234,7 +1234,17 @@ var autoFixLock = sync.Mutex{} func autoFixIndex() { defer logging.Recover() - if util.IsMutexLocked(&autoFixLock) || isFullReindexing { + if isFullReindexing { + logging.LogInfof("skip check index caused by full reindexing") + return + } + + if util.IsMutexLocked(&syncLock) { + logging.LogInfof("skip check index caused by sync lock") + return + } + + if util.IsMutexLocked(&autoFixLock) { return }