Commit a9a6f6f3 authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

more information on failing to open db

parent c3c1a7f5
......@@ -14,12 +14,14 @@ BerkeleyDBDataStore::BerkeleyDBDataStore() :
AbstractDataStore(Duplicates::IGNORE, false, false) {
_dbm = NULL;
_dbenv = NULL;
_in_memory = false;
};
BerkeleyDBDataStore::BerkeleyDBDataStore(Duplicates duplicates, bool eraseOnGet, bool debug) :
AbstractDataStore(duplicates, eraseOnGet, debug) {
_dbm = NULL;
_dbenv = NULL;
_in_memory = false;
};
BerkeleyDBDataStore::~BerkeleyDBDataStore() {
......@@ -119,6 +121,7 @@ void BerkeleyDBDataStore::createDatabase(const std::string& db_name, const std::
}
if (status != 0) { // is this the right test for error?
std::cerr << "BerkeleyDBDataStore::createDatabase: BerkeleyDB error on DB open" << std::endl;
std::cerr << "(database name = " << db_name << ", database path = " << db_path << ")" << std::endl;
std::cerr << "status = " << status << std::endl;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment