mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🐛 数据库索引报错卡住 Fix https://github.com/siyuan-note/siyuan/issues/5684
This commit is contained in:
@@ -167,6 +167,7 @@ func (box *Box) Index(fullRebuildIndex bool) (treeCount int, treeSize int64) {
|
||||
continue
|
||||
}
|
||||
if err = sql.InsertBlocksSpans(tx, tree); nil != err {
|
||||
sql.RollbackTx(tx)
|
||||
continue
|
||||
}
|
||||
if err = sql.CommitTx(tx); nil != err {
|
||||
|
||||
Reference in New Issue
Block a user