mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-07 02:20:25 +08:00
优化本地数据库关闭相关代码
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user