mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 数据库事务队列执行报错回滚释放连接
This commit is contained in:
parent
209a853040
commit
c5c9884d38
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ func FlushQueue() {
|
||||||
if err = execOp(op, tx, context); nil != err {
|
if err = execOp(op, tx, context); nil != err {
|
||||||
tx.Rollback()
|
tx.Rollback()
|
||||||
logging.LogErrorf("queue operation failed: %s", err)
|
logging.LogErrorf("queue operation failed: %s", err)
|
||||||
return
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = commitTx(tx); nil != err {
|
if err = commitTx(tx); nil != err {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue