Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: 自动校验数据库索引 https://github.com/siyuan-note/siyuan/issues/7016

Liang Ding72dd9192aed3
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index 36608549ca..c4e131ca13 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -1264,7 +1264,7 @@ func autoFixIndex() {
btUpdated, _ := time.Parse("20060102150405", updated)
dbUpdated, _ := time.Parse("20060102150405", rootUpdated)
- if dbUpdated.Before(btUpdated.Add(-1 * time.Minute)) {
+ if dbUpdated.Before(btUpdated.Add(-10 * time.Minute)) {
logging.LogWarnf("tree [%s] is not up to date, reindex it", rootID)
reindexTree(rootID, i, size)
continue