summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp
index 58c037652e..edef04f79b 100644
--- a/plugins/Dbx_mdbx/src/dbintf.cpp
+++ b/plugins/Dbx_mdbx/src/dbintf.cpp
@@ -145,7 +145,8 @@ void CDbxMDBX::DBFlush(bool bForce)
if (m_pWriteTran) {
mdbx_txn_commit(m_pWriteTran);
-
+ mdbx_env_sync(m_env);
+
m_pWriteTran = nullptr;
m_dbError = mdbx_txn_begin(m_env, nullptr, MDBX_TXN_READWRITE, &m_pWriteTran);
// FIXME: throw an exception