aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2019-08-18 17:10:45 +0100
committerHoward Chu <hyc@symas.com>2019-08-18 17:10:45 +0100
commit50ec40ea16f281690aeded37973dc582ddf38843 (patch)
treeabecad269e479f396161c3007209e0b5513b2738 /src/blockchain_db
parentMerge pull request #5685 (diff)
downloadmonero-50ec40ea16f281690aeded37973dc582ddf38843.tar.xz
Increase max_dbs from 20 to 32
We've added a lot of new indices recently, and 20 isn't enough for them plus new DBs opened during format migrations.
Diffstat (limited to 'src/blockchain_db')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index 78db37b5a..1ede7af62 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -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();