🐛 数据库索引报错卡住 Fix https://github.com/siyuan-note/siyuan/issues/5684
This commit is contained in:
parent
5a748a762f
commit
c8da5cd654
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue