From 4602976a8a4bd17b88a9a9d0311f1ecff81bc29e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sat, 4 Feb 2023 11:57:30 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=B4=A2=E5=BC=95=E8=AE=A2=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/index_fix.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.go index dd94fe500..5ef745366 100644 --- a/kernel/model/index_fix.go +++ b/kernel/model/index_fix.go @@ -21,6 +21,7 @@ import ( "os" "path" "path/filepath" + "runtime" "strings" "sync" "time" @@ -148,6 +149,7 @@ func autoFixIndex() { util.PushStatusBar(Conf.Language(58)) sql.WaitForWritingDatabase() util.PushStatusBar(Conf.Language(185)) + runtime.GC() } func reindexTreeByUpdated(rootUpdatedMap, dbRootUpdatedMap map[string]string) {