From 936cbc93d960e334929a1a3ea13568c244ab2277 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 Sep 2020 21:53:05 +0300 Subject: sh-h-hit --- plugins/Dbx_mdbx/src/dbintf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/Dbx_mdbx') 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 -- cgit v1.2.3