From 72dd9192aed3a9dda83ae923668f10b285e3bca4 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 9 Jan 2023 10:37:56 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E8=87=AA=E5=8A=A8=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E7=B4=A2=E5=BC=95=20https://github.?= =?UTF-8?q?com/siyuan-note/siyuan/issues/7016?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go index 36608549c..c4e131ca1 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