Pārlūkot izejas kodu

:art: 数据库事务队列执行报错回滚释放连接

Liang Ding 2 gadi atpakaļ
vecāks
revīzija
c5c9884d38
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      kernel/sql/queue.go

+ 1 - 1
kernel/sql/queue.go

@@ -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 {