Skip to content

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

:art: Improve index queue https://github.com/siyuan-note/siyuan/issues/17694

Daniel2e33429a37ff
diff --git a/kernel/sql/index_queue.go b/kernel/sql/index_queue.go
index 2e5fc470b1..07965ed3e9 100644
--- a/kernel/sql/index_queue.go
+++ b/kernel/sql/index_queue.go
@@ -212,6 +212,9 @@ func PollIndexQueue() {
return
}
+ initDatabaseLock.Lock()
+ defer initDatabaseLock.Unlock()
+
_ = indexFlock.Lock()
defer func() { _ = indexFlock.Unlock() }()