🎨 同步时跳过校验数据库索引

This commit is contained in:
Liang Ding 2023-01-15 11:26:18 +08:00
parent 8740e47a01
commit 12a78e9682
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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
}