From caf08688e3ab2112c752daddb08c8388323e53ee Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Fri, 23 Jun 2023 21:50:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=AC=E5=9C=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E5=85=B3=E9=97=AD=E7=9B=B8=E5=85=B3=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/utils/dbs/batch.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/utils/dbs/batch.go b/internal/utils/dbs/batch.go index cdb57a0..fd0af54 100644 --- a/internal/utils/dbs/batch.go +++ b/internal/utils/dbs/batch.go @@ -151,6 +151,7 @@ func (this *Batch) beginTx() *sql.Tx { tx, err := this.db.Begin() if err != nil { this.processErr("begin transaction", err) + this.db.EndUpdating() return nil } return tx