diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-13 13:46:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-13 13:46:52 +0300 |
commit | 6521e3996f4f452206c3bb38e8f45a791e19bdef (patch) | |
tree | e7479857f6c874d5d7d9f58090c18931051f55c0 /plugins/Dbx_mdbx/src | |
parent | 1cf7d666be7faf5d94ccd0b25ddb5492c5cf5d22 (diff) |
MDBX_COALESCE helps to free trailing database pages
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbintf.cpp | 2 |
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;
|