diff options
author | George Hazan <ghazan@miranda.im> | 2020-12-02 19:12:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-12-02 19:12:30 +0300 |
commit | 11638eb071d93243a4a64a744c3d47f58e1dc98d (patch) | |
tree | f76a2f29ea21ad4976e024ae6678a948c432a5a9 /plugins/Dbx_mdbx | |
parent | 505b2f5bd4d5d2442bc0269527b639ec4994b07e (diff) |
Dbx_mdbx: fix for losing information during reboot
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbintf.cpp | 3 |
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
|