diff options
author | George Hazan <ghazan@miranda.im> | 2020-11-25 16:24:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-11-25 16:24:25 +0300 |
commit | e23832441f6c5499673982ff7c3659f8f5728e30 (patch) | |
tree | 3ee88b02737c765f0cf9971dae476bb765a09a3b /plugins/Dbx_mdbx/src | |
parent | 7d7f8e1c9d07296eaef520484ee7415df0d87c8c (diff) |
fixes #2628 (Миранда зависает при попытке проверить базу)
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbintf.cpp | 4 |
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)
|