diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-22 19:18:14 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-22 19:18:14 +0300 |
commit | 4ea2523ec747335c4c915a38f2f73b5782711d24 (patch) | |
tree | bf4d022c24e966399a45d4a5da127e4b952deb35 /plugins/Dbx_mdbx/src/stdafx.h | |
parent | 7177ca3a70807f06746b5f753e786811cd98f90e (diff) |
fix for broken contacts in mdbx
Diffstat (limited to 'plugins/Dbx_mdbx/src/stdafx.h')
-rw-r--r-- | plugins/Dbx_mdbx/src/stdafx.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Dbx_mdbx/src/stdafx.h b/plugins/Dbx_mdbx/src/stdafx.h index 5a14b7ab6f..caa3ea2725 100644 --- a/plugins/Dbx_mdbx/src/stdafx.h +++ b/plugins/Dbx_mdbx/src/stdafx.h @@ -59,7 +59,7 @@ public: {
int rc = mdbx_txn_begin(pEnv, NULL, 0, &m_txn);
/* FIXME: throw an exception */
- assert(rc == MDBX_SUCCESS);
+ _ASSERT(rc == MDBX_SUCCESS);
UNREFERENCED_PARAMETER(rc);
}
@@ -89,7 +89,7 @@ public: {
int rc = mdbx_txn_abort(m_txn);
/* FIXME: throw an exception */
- assert(rc == MDBX_SUCCESS);
+ _ASSERT(rc == MDBX_SUCCESS);
UNREFERENCED_PARAMETER(rc);
m_txn = nullptr;
}
@@ -114,14 +114,14 @@ public: {
int rc = mdbx_txn_renew(m_txn);
/* FIXME: throw an exception */
- assert(rc == MDBX_SUCCESS);
+ _ASSERT(rc == MDBX_SUCCESS);
UNREFERENCED_PARAMETER(rc);
}
__forceinline ~txn_ptr_ro()
{
int rc = mdbx_txn_reset(m_txn);
/* FIXME: throw an exception */
- assert(rc == MDBX_SUCCESS);
+ _ASSERT(rc == MDBX_SUCCESS);
UNREFERENCED_PARAMETER(rc);
}
__forceinline operator MDBX_txn*() const { return m_txn; }
@@ -155,7 +155,7 @@ public: {
int rc = mdbx_cursor_renew(mdbx_cursor_txn(m_cursor), m_cursor);
/* FIXME: throw an exception */
- assert(rc == MDBX_SUCCESS);
+ _ASSERT(rc == MDBX_SUCCESS);
UNREFERENCED_PARAMETER(rc);
}
__forceinline operator MDBX_cursor*() const { return m_cursor; }
|