aboutsummaryrefslogtreecommitdiff
path: root/brep/mod-package-version-details.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-03-14 14:38:45 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-03-17 12:59:35 +0300
commit0b6b57f9acaa2ec648bf582ff67851331f8e6eef (patch)
tree7ce5da6a1c37f3674762d5514b0a34bf05e38df7 /brep/mod-package-version-details.cxx
parent637d5650b91cb1da2605e5f7049ccc8bab5591f3 (diff)
Use serializable transaction isolation level
Diffstat (limited to 'brep/mod-package-version-details.cxx')
-rw-r--r--brep/mod-package-version-details.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/brep/mod-package-version-details.cxx b/brep/mod-package-version-details.cxx
index 992b829..21da41f 100644
--- a/brep/mod-package-version-details.cxx
+++ b/brep/mod-package-version-details.cxx
@@ -18,7 +18,6 @@
#include <brep/page>
#include <brep/options>
#include <brep/package>
-#include <brep/database>
#include <brep/package-odb>
using namespace std;
@@ -31,9 +30,8 @@ using namespace brep::cli;
//
brep::package_version_details::
package_version_details (const package_version_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)
{
}
@@ -45,10 +43,10 @@ init (scanner& s)
options_ = make_shared<options::package_version_details> (
s, unknown_mode::fail, unknown_mode::fail);
+ database_module::init (*options_);
+
if (options_->root ().empty ())
options_->root (dir_path ("/"));
-
- db_ = shared_database (*options_);
}
bool brep::package_version_details::