aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-07-17 16:04:07 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-07-17 16:04:07 +0300
commitea6808cc41094b87f667705587fe2deea0437a1e (patch)
tree8ea975329a545d92568badeb90dddea62d8433a0
parent48f1c1feda91d9809406c83569443eedc9ea799e (diff)
Fix build task handler not to acquire extra database connection
-rw-r--r--mod/mod-build-task.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/mod-build-task.cxx b/mod/mod-build-task.cxx
index b1f7658..3ab0ea8 100644
--- a/mod/mod-build-task.cxx
+++ b/mod/mod-build-task.cxx
@@ -1444,7 +1444,7 @@ handle (request& rq, response& rs)
{
try
{
- transaction t (build_db_->begin ());
+ transaction t (conn->begin ());
b = build_db_->find<build> (b->id);