mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-24 07:54:07 +01:00
🐛 数据库索引报错卡住 Fix https://github.com/siyuan-note/siyuan/issues/5684
This commit is contained in:
parent
fa6f57dc97
commit
5a748a762f
1 changed files with 1 additions and 0 deletions
|
|
@ -167,6 +167,7 @@ func (box *Box) Index(fullRebuildIndex bool) (treeCount int, treeSize int64) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err = sql.InsertBlocksSpans(tx, tree); nil != err {
|
if err = sql.InsertBlocksSpans(tx, tree); nil != err {
|
||||||
|
sql.RollbackTx(tx)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err = sql.CommitTx(tx); nil != err {
|
if err = sql.CommitTx(tx); nil != err {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue