diff options
author | me0wmix <me0wmix@cryptoanarchy.localnet> | 2016-01-21 11:18:26 -0700 |
---|---|---|
committer | me0wmix <me0wmix@cryptoanarchy.localnet> | 2016-01-21 11:18:26 -0700 |
commit | 28f95eb001a47056287c8adf07c2638746ad8e48 (patch) | |
tree | 1ca085f0499b8e43d190b62dc02b15a5f1f0b2c5 /src/blockchain_db/berkeleydb/db_bdb.cpp | |
parent | Merge pull request #616 (diff) | |
download | monero-28f95eb001a47056287c8adf07c2638746ad8e48.tar.xz |
OpenBSD support for Monero.
Diffstat (limited to 'src/blockchain_db/berkeleydb/db_bdb.cpp')
-rw-r--r-- | src/blockchain_db/berkeleydb/db_bdb.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp index 1ccb6be12..02fdaba2f 100644 --- a/src/blockchain_db/berkeleydb/db_bdb.cpp +++ b/src/blockchain_db/berkeleydb/db_bdb.cpp @@ -783,9 +783,11 @@ void BlockchainBDB::open(const std::string& filename, const int db_flags) m_env->set_lk_max_locks(DB_MAX_LOCKS); m_env->set_lk_max_lockers(DB_MAX_LOCKS); m_env->set_lk_max_objects(DB_MAX_LOCKS); - + + #ifndef __OpenBSD__ //OpenBSD's DB package is too old to support this feature if(m_auto_remove_logs) m_env->log_set_config(DB_LOG_AUTO_REMOVE, 1); + #endif // last parameter left 0, files will be created with default rw access m_env->open(filename.c_str(), db_env_open_flags, 0); |