summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-12-02 19:12:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-12-02 19:12:30 +0300
commit11638eb071d93243a4a64a744c3d47f58e1dc98d (patch)
treef76a2f29ea21ad4976e024ae6678a948c432a5a9 /plugins/Dbx_mdbx
parent505b2f5bd4d5d2442bc0269527b639ec4994b07e (diff)
Dbx_mdbx: fix for losing information during reboot
Diffstat (limited to 'plugins/Dbx_mdbx')
-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