mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
commit
2be47ae02a
1 changed files with 1 additions and 1 deletions
|
@ -1329,7 +1329,7 @@ void BlockchainLMDB::open(const std::string& filename, const int db_flags)
|
||||||
// set up lmdb environment
|
// set up lmdb environment
|
||||||
if ((result = mdb_env_create(&m_env)))
|
if ((result = mdb_env_create(&m_env)))
|
||||||
throw0(DB_ERROR(lmdb_error("Failed to create lmdb environment: ", result).c_str()));
|
throw0(DB_ERROR(lmdb_error("Failed to create lmdb environment: ", result).c_str()));
|
||||||
if ((result = mdb_env_set_maxdbs(m_env, 20)))
|
if ((result = mdb_env_set_maxdbs(m_env, 32)))
|
||||||
throw0(DB_ERROR(lmdb_error("Failed to set max number of dbs: ", result).c_str()));
|
throw0(DB_ERROR(lmdb_error("Failed to set max number of dbs: ", result).c_str()));
|
||||||
|
|
||||||
int threads = tools::get_max_concurrency();
|
int threads = tools::get_max_concurrency();
|
||||||
|
|
Loading…
Reference in a new issue