From 6521e3996f4f452206c3bb38e8f45a791e19bdef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 13 Apr 2018 13:46:52 +0300 Subject: MDBX_COALESCE helps to free trailing database pages --- plugins/Dbx_mdbx/src/dbintf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3