Merge pull request #5817

50ec40e Increase max_dbs from 20 to 32 (hyc)
This commit is contained in:
luigi1111 2019-08-21 15:49:51 -05:00
commit 2be47ae02a
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -1329,7 +1329,7 @@ void BlockchainLMDB::open(const std::string& filename, const int db_flags)
// set up lmdb environment
if ((result = mdb_env_create(&m_env)))
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()));
int threads = tools::get_max_concurrency();