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/5684

Liang Dingc8da5cd6541a
diff --git a/kernel/model/index.go b/kernel/model/index.go
index 9667c449ef..b78da46a3c 100644
--- a/kernel/model/index.go
+++ b/kernel/model/index.go
@@ -137,9 +137,7 @@ func (box *Box) Index(fullRebuildIndex bool) (treeCount int, treeSize int64) {
sql.PutBoxHash(tx, box.ID, boxHash)
util.SetBootDetails("Cleaning obsolete indexes...")
util.PushEndlessProgress(Conf.Language(108))
- if err = sql.DeleteByBoxTx(tx, box.ID); nil != err {
- return
- }
+ sql.DeleteByBoxTx(tx, box.ID)
if err = sql.CommitTx(tx); nil != err {
return
}