summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.cpp3
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