summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-06 13:30:12 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-06 13:30:38 +0300
commit6cbfe501a6b968d91852db010273c566fe64ae9c (patch)
tree6d2f0032c00c134214884379c34c3a3a2d83588d /plugins
parent62202ed10617927d5429bc59898e12a366abe744 (diff)
fix for expanding database
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Dbx_mdb/src/dbintf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_mdb/src/dbintf.cpp b/plugins/Dbx_mdb/src/dbintf.cpp
index e902762238..7498c4e0d7 100644
--- a/plugins/Dbx_mdb/src/dbintf.cpp
+++ b/plugins/Dbx_mdb/src/dbintf.cpp
@@ -196,7 +196,7 @@ bool CDbxMdb::Remap()
{
MDBX_envinfo ei;
mdbx_env_info(m_pMdbEnv, &ei, sizeof(ei));
- return mdbx_env_set_mapsize(m_pMdbEnv, ei.mi_mapsize + 0x100000) == MDBX_SUCCESS;
+ return mdbx_env_set_geometry(m_pMdbEnv, -1, -1, ei.mi_mapsize + 0x100000, 0x100000, -1, -1) == MDBX_SUCCESS;
}