Reorganizing kvstore sources and switching build system to CMake.
[bluesky.git] / kvstore / backend.cc
index d97c492..04a6764 100644 (file)
@@ -91,22 +91,22 @@ public:
 
         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,