summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-11 00:06:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-11 00:06:09 +0300
commit7d4ba074744a39500c13e317d9e89e16f7fc9b7f (patch)
treea67ba3a8e773241fd7712e8853f2c31649fabdfa /plugins
parent7de2c65b3c6ab68a7981b4c65fc7b31f5a05cdd5 (diff)
512M is the maximum size that a 32-bit program can mmap
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp
index 0a643f548c..230a01920e 100644
--- a/plugins/Dbx_mdbx/src/dbintf.cpp
+++ b/plugins/Dbx_mdbx/src/dbintf.cpp
@@ -182,12 +182,12 @@ STDMETHODIMP_(void) CDbxMDBX::SetCacheSafetyMode(BOOL bIsSet)
int CDbxMDBX::Map()
{
int rc = mdbx_env_set_geometry(m_env,
- -1 /* minimal lower limit */,
- 64ul << 10 /* atleast 64K for now */,
- 256ul << 20 /* 256M upper limit */,
- 256ul << 10 /* 256K growth step */,
- 512ul << 10 /* 512K shrink threshold */,
- -1 /* default page size */);
+ -1, // minimal lower limit
+ 1ul << 20, // at least 1M for now
+ 512ul << 20, // 512M upper size
+ 1ul << 20, // 1M growth step
+ 512ul << 10, // 512K shrink threshold
+ -1); // default page size
if (rc != MDBX_SUCCESS)
return rc;