diff options
Diffstat (limited to 'bdep/publish.cxx')
-rw-r--r-- | bdep/publish.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bdep/publish.cxx b/bdep/publish.cxx index 1fcc942..ab58025 100644 --- a/bdep/publish.cxx +++ b/bdep/publish.cxx @@ -807,12 +807,15 @@ namespace bdep true /* load_packages */)); const dir_path& prj (pp.project); - database db (open (prj, trace)); // We need a single configuration to prepare package distribution. // 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 (); |