Skip to content

Commit

Permalink
Enable DB Log Flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranz5 committed May 20, 2014
1 parent 45a18e4 commit e401751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ bool CDBEnv::Open(boost::filesystem::path pathEnv_)
dbenv.set_errfile(fopen(pathErrorFile.string().c_str(), "a")); /// debug
dbenv.set_flags(DB_AUTO_COMMIT, 1);
dbenv.set_flags(DB_TXN_WRITE_NOSYNC, 1);
// dbenv.log_set_config(DB_LOG_AUTO_REMOVE, 1);
dbenv.log_set_config(DB_LOG_AUTO_REMOVE, 1);
int ret = dbenv.open(strPath.c_str(),
DB_CREATE |
DB_INIT_LOCK |
Expand Down Expand Up @@ -125,7 +125,7 @@ void CDBEnv::MakeMock()
dbenv.set_lk_max_locks(10000);
dbenv.set_lk_max_objects(10000);
dbenv.set_flags(DB_AUTO_COMMIT, 1);
// dbenv.log_set_config(DB_LOG_IN_MEMORY, 1);
dbenv.log_set_config(DB_LOG_IN_MEMORY, 1);
int ret = dbenv.open(NULL,
DB_CREATE |
DB_INIT_LOCK |
Expand Down

0 comments on commit e401751

Please sign in to comment.