OpenBSD support for Monero.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user