summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-13 13:46:52 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-13 13:46:52 +0300
commit6521e3996f4f452206c3bb38e8f45a791e19bdef (patch)
treee7479857f6c874d5d7d9f58090c18931051f55c0 /plugins/Dbx_mdbx/src
parent1cf7d666be7faf5d94ccd0b25ddb5492c5cf5d22 (diff)
MDBX_COALESCE helps to free trailing database pages
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp
index 4ecf9fbe08..3c00631639 100644
--- a/plugins/Dbx_mdbx/src/dbintf.cpp
+++ b/plugins/Dbx_mdbx/src/dbintf.cpp
@@ -225,7 +225,7 @@ int CDbxMDBX::Map()
if (rc != MDBX_SUCCESS)
return rc;
- unsigned int mode = MDBX_NOSUBDIR | MDBX_MAPASYNC | MDBX_WRITEMAP | MDBX_NOSYNC;
+ unsigned int mode = MDBX_NOSUBDIR | MDBX_MAPASYNC | MDBX_WRITEMAP | MDBX_NOSYNC | MDBX_COALESCE;
if (m_bReadOnly)
mode |= MDBX_RDONLY;