You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2023/07/21 05:35:00 UTC
[incubator-devlake] branch main updated: fix: api stop working due to lock tables (#5715)
This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new fb73a12e6 fix: api stop working due to lock tables (#5715)
fb73a12e6 is described below
commit fb73a12e60a3106561717c3e9aa529eed9842e8e
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Fri Jul 21 13:34:55 2023 +0800
fix: api stop working due to lock tables (#5715)
---
backend/helpers/dbhelper/txhelper.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/backend/helpers/dbhelper/txhelper.go b/backend/helpers/dbhelper/txhelper.go
index fc3fb990d..44b4227fe 100644
--- a/backend/helpers/dbhelper/txhelper.go
+++ b/backend/helpers/dbhelper/txhelper.go
@@ -80,6 +80,7 @@ func (l *TxHelper[E]) End() {
}
if msg == "" {
+ _ = l.tx.UnlockTables()
errors.Must(l.tx.Commit())
} else {
_ = l.tx.UnlockTables()