aboutsummaryrefslogtreecommitdiff
path: root/bdep/ci.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/ci.cxx')
-rw-r--r--bdep/ci.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/bdep/ci.cxx b/bdep/ci.cxx
index 08f2578..81db678 100644
--- a/bdep/ci.cxx
+++ b/bdep/ci.cxx
@@ -200,10 +200,13 @@ namespace bdep
false /* load_packages */));
const dir_path& prj (pp.project);
- database db (open (prj, trace));
shared_ptr<configuration> cfg;
{
+ // Don't keep the database open longer than necessary.
+ //
+ database db (open (prj, trace));
+
transaction t (db.begin ());
configurations cfgs (find_configurations (o, prj, t));
t.commit ();