aboutsummaryrefslogtreecommitdiff
path: root/bpkg/database.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-03-21 21:40:28 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-04-19 19:39:55 +0300
commit15dff3c592385466406732cd6ced809dc28cf2e2 (patch)
tree1da9f0738293eb7906d92ab010a79c689087b655 /bpkg/database.cxx
parent46842f6cf74d085ced382dd0c187f6a7a578913c (diff)
Implement build plan simulation
Diffstat (limited to 'bpkg/database.cxx')
-rw-r--r--bpkg/database.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/bpkg/database.cxx b/bpkg/database.cxx
index a590eca..5b9e14f 100644
--- a/bpkg/database.cxx
+++ b/bpkg/database.cxx
@@ -31,6 +31,7 @@ namespace bpkg
try
{
+
// We don't need the thread pool.
//
unique_ptr<connection_factory> cf (new single_connection_factory);
@@ -51,6 +52,8 @@ namespace bpkg
// also fail if the database is inaccessible (e.g., file does not
// exist, already used by another process, etc).
//
+ using odb::sqlite::transaction; // Skip the wrapper.
+
try
{
db.connection ()->execute ("PRAGMA locking_mode = EXCLUSIVE");