From 6f443be5781b2d0660806ce80bbb74cb0fb20f65 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 23 Dec 2024 17:19:49 +0800 Subject: [PATCH] :art: Do not perform check index on mobile https://ld246.com/article/1734939896061 https://github.com/siyuan-note/siyuan/issues/10761 --- kernel/model/index_fix.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.go index 366ab2c61..78b57fb8d 100644 --- a/kernel/model/index_fix.go +++ b/kernel/model/index_fix.go @@ -48,6 +48,11 @@ var ( // checkIndex 自动校验数据库索引,仅在数据同步执行完成后执行一次。 func checkIndex() { checkIndexOnce.Do(func() { + if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container || util.ContainerHarmony == util.Container { + // 移动端不执行校验 https://ld246.com/article/1734939896061 + return + } + logging.LogInfof("start checking index...") removeDuplicateDatabaseIndex()