Skip to content

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

:art: 索引订正

Liang Ding4602976a8a4b
diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.go
index dd94fe500d..5ef7453660 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) {