namespace kvstore
{
-MemoryBackend::~MemoryBackend()
+MemoryBackend::~MemoryBackend()
{
}
if (log_in_memory)
{
- res = _dbenv->set_flags(_dbenv, DB_LOG_INMEMORY, 1);
+ res = _dbenv->set_flags(_dbenv, DB_LOG_IN_MEMORY, 1);
if (res != 0)
{
cerr << db_strerror(res) << endl;
- throw std::runtime_error("BDB ENV DB_LOG_INMEMORY");
+ throw std::runtime_error("BDB ENV DB_LOG_IN_MEMORY");
}
}
- res = _dbenv->set_flags(_dbenv, DB_LOG_AUTOREMOVE, 1);
+ res = _dbenv->set_flags(_dbenv, DB_LOG_AUTO_REMOVE, 1);
if (res != 0)
{
cerr << db_strerror(res) << endl;
- throw std::runtime_error("BDB ENV DB_LOG_AUTOREMOVE");
+ throw std::runtime_error("BDB ENV DB_LOG_AUTO_REMOVE");
}
res = _dbenv->open(_dbenv,
0644);
- if (res != 0)
+ if (res != 0)
{
cerr << db_strerror(res) << endl;
throw std::runtime_error("BDB ENV Open Fail");