Skip to content

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

:bug: Fix https://github.com/siyuan-note/siyuan/issues/16847

Daniel6c2545e457de
diff --git a/kernel/sql/queue.go b/kernel/sql/queue.go
index 53e6aa17d2..fdbe316839 100644
--- a/kernel/sql/queue.go
+++ b/kernel/sql/queue.go
@@ -163,6 +163,7 @@ func FlushQueue() {
context["total"] = groupOpsTotal[op.action]
if err = execOp(op, tx, context); err != nil {
tx.Rollback()
+ closeTxPreparedStmts(tx)
logging.LogErrorf("queue operation [%s] failed: %s", op.action, err)
continue
}