An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve init db
Daniel42e1c0be4d5b
diff --git a/kernel/sql/queue.go b/kernel/sql/queue.goindex fdbe316839..27e733baac 100644--- a/kernel/sql/queue.go+++ b/kernel/sql/queue.go@@ -95,6 +95,9 @@ func ClearQueue() {var flushingTx = atomic.Bool{}func FlushQueue() {+ initDatabaseLock.Lock()+ defer initDatabaseLock.Unlock()+ops := getOperations()total := len(ops)if 1 > total && !flushingTx.Load() {