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) {