summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
authorAndrew Johnson <ajohnson@draster.com>2019-02-16 17:02:52 -0800
committerAndrew Johnson <ajohnson@draster.com>2019-02-16 17:05:25 -0800
commitb5733b27376d8f21aeefbc67bc7e040c312eb957 (patch)
treeca3e47833e475633d8236193de81ea3608504b97 /src/Cache.cpp
parentRelease Nheko 0.6.3 (diff)
downloadnheko-b5733b27376d8f21aeefbc67bc7e040c312eb957.tar.xz
Attempt to fix issue #19 by increasing the lmdb max_dbs setting.
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp
index d6a7b509..81054ddc 100644
--- a/src/Cache.cpp
+++ b/src/Cache.cpp
@@ -42,7 +42,7 @@ static const lmdb::val CACHE_FORMAT_VERSION_KEY("cache_format_version");
 constexpr size_t MAX_RESTORED_MESSAGES = 30;
 
 constexpr auto DB_SIZE = 512UL * 1024UL * 1024UL; // 512 MB
-constexpr auto MAX_DBS = 1024UL;
+constexpr auto MAX_DBS = 8092UL;
 
 //! Cache databases and their format.
 //!
@@ -2147,4 +2147,4 @@ void
 Cache::clearUserColors()
 {
         UserColors.clear();
-}
\ No newline at end of file
+}