Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
f402a4e274
1 changed files with 2 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
|
||||
}
|
||||
|
@ -167,6 +165,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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue