From 0b6b57f9acaa2ec648bf582ff67851331f8e6eef Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 14 Mar 2016 14:38:45 +0300 Subject: Use serializable transaction isolation level --- brep/mod-repository-details.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'brep/mod-repository-details.cxx') diff --git a/brep/mod-repository-details.cxx b/brep/mod-repository-details.cxx index f040be6..b0e2b95 100644 --- a/brep/mod-repository-details.cxx +++ b/brep/mod-repository-details.cxx @@ -24,7 +24,6 @@ #include #include #include -#include #include using namespace std; @@ -37,9 +36,8 @@ using namespace brep::cli; // brep::repository_details:: repository_details (const repository_details& r) - : module (r), - options_ (r.initialized_ ? r.options_ : nullptr), - db_ (r.initialized_ ? r.db_ : nullptr) + : database_module (r), + options_ (r.initialized_ ? r.options_ : nullptr) { } @@ -51,11 +49,11 @@ init (scanner& s) options_ = make_shared ( s, unknown_mode::fail, unknown_mode::fail); + database_module::init (*options_); + if (options_->root ().empty ()) options_->root (dir_path ("/")); - db_ = shared_database (*options_); - tzset (); // To use butl::to_stream() later on. } -- cgit v1.1