diff options
Diffstat (limited to 'bpkg/database.cxx')
-rw-r--r-- | bpkg/database.cxx | 3 |
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"); |