summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src/stdafx.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-24 17:51:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-24 17:51:01 +0300
commitc4722415c258aca682c7a817ead9e7143a23ee44 (patch)
tree57f36ec0b919d6c23b7b64291901861499cd4504 /plugins/Dbx_mdbx/src/stdafx.h
parent6121a75e201ed9c4296838bdfae424972be44f40 (diff)
merge with libmdbx
Diffstat (limited to 'plugins/Dbx_mdbx/src/stdafx.h')
-rw-r--r--plugins/Dbx_mdbx/src/stdafx.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/Dbx_mdbx/src/stdafx.h b/plugins/Dbx_mdbx/src/stdafx.h
index 428860127c..15acf9a137 100644
--- a/plugins/Dbx_mdbx/src/stdafx.h
+++ b/plugins/Dbx_mdbx/src/stdafx.h
@@ -113,16 +113,14 @@ public:
__forceinline txn_ptr_ro(CMDBX_txn_ro &_txn) : txn(_txn), lock(txn.cs)
{
int rc = mdbx_txn_renew(txn);
- /* FIXME: throw an exception */
- _ASSERT(rc == MDBX_SUCCESS);
- UNREFERENCED_PARAMETER(rc);
+ if (rc != MDBX_SUCCESS)
+ DebugBreak();
}
__forceinline ~txn_ptr_ro()
{
int rc = mdbx_txn_reset(txn);
- /* FIXME: throw an exception */
- _ASSERT(rc == MDBX_SUCCESS);
- UNREFERENCED_PARAMETER(rc);
+ if (rc != MDBX_SUCCESS)
+ DebugBreak();
}
__forceinline operator MDBX_txn*() const { return txn; }
};