lmdb: Set limit for at least 6 DBs (requiring each 10 LMDB databases)
This makes setting up tests easier.
This commit is contained in:
parent
e44cbf94e5
commit
a8afccf081
|
@ -55,7 +55,7 @@ Config::~Config()
|
|||
void Config::initStorage(const char *path, std::uint32_t maxDbs)
|
||||
{
|
||||
assert(m_storage == nullptr); // only allow initializing storage once
|
||||
m_storage = std::make_unique<StorageDistribution>(path, maxDbs ? maxDbs : databases.size() * 10 + 15);
|
||||
m_storage = std::make_unique<StorageDistribution>(path, maxDbs ? maxDbs : std::max<std::uint32_t>(databases.size() * 10u + 15u, 60u));
|
||||
for (auto &db : databases) {
|
||||
db.initStorage(*m_storage);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue