From 4ea2523ec747335c4c915a38f2f73b5782711d24 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Jan 2018 19:18:14 +0300 Subject: fix for broken contacts in mdbx --- plugins/Dbx_mdbx/src/stdafx.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Dbx_mdbx/src/stdafx.h') 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; } -- cgit v1.2.3