diff options
author | George Hazan <ghazan@miranda.im> | 2020-09-22 21:53:05 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-09-22 21:53:05 +0300 |
commit | 936cbc93d960e334929a1a3ea13568c244ab2277 (patch) | |
tree | b6466d16e8d44025486a0e36c36688e12fbad3ed /plugins/Dbx_mdbx/src | |
parent | 4d35365992ede7ce9f6dfbf3de3900a62c4ed697 (diff) |
sh-h-hit
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbintf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp index c8f7225650..2fdffc7dd9 100644 --- a/plugins/Dbx_mdbx/src/dbintf.cpp +++ b/plugins/Dbx_mdbx/src/dbintf.cpp @@ -234,13 +234,14 @@ int CDbxMDBX::Map() mdbx_env_create(&m_env);
mdbx_env_set_maxdbs(m_env, 10);
- mdbx_env_set_maxreaders(m_env, 1024);
mdbx_env_set_userctx(m_env, this);
mdbx_env_set_assert(m_env, assert_func);
#ifdef _WIN64
+ mdbx_env_set_maxreaders(m_env, 1024);
__int64 upperLimit = 0x400000000ul;
#else
+ mdbx_env_set_maxreaders(m_env, 244);
intptr_t upperLimit = 512ul << 20;
#endif
|