aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-12-08 20:11:04 +0200
committerRiccardo Spagni <ric@spagni.net>2015-12-08 20:11:06 +0200
commit8a5ba475cbbbd5173384ffce2ffc9f485a672e94 (patch)
tree2876f72231e72533cb9eccb2761da3f2bb4ff087
parentMerge pull request #523 (diff)
parentdb_bdb: move log_set_config call before open (diff)
downloadmonero-8a5ba475cbbbd5173384ffce2ffc9f485a672e94.tar.xz
Merge pull request #524
1c8262c db_bdb: move log_set_config call before open (moneromooo-monero)
-rw-r--r--src/blockchain_db/berkeleydb/db_bdb.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp
index 18bd674d3..ce355ccde 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.cpp
+++ b/src/blockchain_db/berkeleydb/db_bdb.cpp
@@ -780,13 +780,13 @@ void BlockchainBDB::open(const std::string& filename, const int db_flags)
m_env->set_lk_max_lockers(DB_MAX_LOCKS);
m_env->set_lk_max_objects(DB_MAX_LOCKS);
+ if(m_auto_remove_logs)
+ m_env->log_set_config(DB_LOG_AUTO_REMOVE, 1);
+
// last parameter left 0, files will be created with default rw access
m_env->open(filename.c_str(), db_env_open_flags, 0);
m_env->set_flags(db_flags, 1);
- if(m_auto_remove_logs)
- m_env->log_set_config(DB_LOG_AUTO_REMOVE, 1);
-
// begin transaction to init dbs
bdb_txn_safe txn;
m_env->txn_begin(NULL, txn, 0);