diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-23 18:59:33 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-23 18:59:33 +0200 |
commit | 91cb5bf93c7eb1caad910b693927d80e552239b1 (patch) | |
tree | 3dc8704a12a86aa7fd6734f45cf3f199b1ff3e26 | |
parent | 1acf9f3c486813df807ff6931e56cc13eb26eeaf (diff) | |
download | sink-91cb5bf93c7eb1caad910b693927d80e552239b1.tar.gz sink-91cb5bf93c7eb1caad910b693927d80e552239b1.zip |
Increase the limit of named databases to 50
-rw-r--r-- | common/storage_lmdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 13755bb..3c153fc 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -434,7 +434,7 @@ Storage::Private::Private(const QString &s, const QString &n, AccessMode m, bool | |||
434 | // TODO: handle error | 434 | // TODO: handle error |
435 | std::cerr << "mdb_env_create: " << rc << " " << mdb_strerror(rc) << std::endl; | 435 | std::cerr << "mdb_env_create: " << rc << " " << mdb_strerror(rc) << std::endl; |
436 | } else { | 436 | } else { |
437 | mdb_env_set_maxdbs(env, 10); | 437 | mdb_env_set_maxdbs(env, 50); |
438 | unsigned int flags = MDB_NOTLS; | 438 | unsigned int flags = MDB_NOTLS; |
439 | if (mode == ReadOnly) { | 439 | if (mode == ReadOnly) { |
440 | flags |= MDB_RDONLY; | 440 | flags |= MDB_RDONLY; |