mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-28 11:16:09 +01:00
🎨 同步时跳过校验数据库索引
This commit is contained in:
parent
8740e47a01
commit
12a78e9682
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue