summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp
index 718642a7b8..632314cc7c 100644
--- a/plugins/Dbx_mdbx/src/dbintf.cpp
+++ b/plugins/Dbx_mdbx/src/dbintf.cpp
@@ -135,7 +135,11 @@ void CDbxMDBX::DBFlush(bool bForce)
if (m_pWriteTran) {
mdbx_txn_commit(m_pWriteTran);
+
m_pWriteTran = nullptr;
+ m_dbError = mdbx_txn_begin(m_env, nullptr, MDBX_TXN_READWRITE, &m_pWriteTran);
+ // FIXME: throw an exception
+ _ASSERT(m_dbError == MDBX_SUCCESS);
}
}
else if (m_safetyMode)