summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src/stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdbx/src/stdafx.h')
-rw-r--r--plugins/Dbx_mdbx/src/stdafx.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/Dbx_mdbx/src/stdafx.h b/plugins/Dbx_mdbx/src/stdafx.h
index 42e3068ae6..4805e9833a 100644
--- a/plugins/Dbx_mdbx/src/stdafx.h
+++ b/plugins/Dbx_mdbx/src/stdafx.h
@@ -57,13 +57,9 @@ class txn_ptr
{
MDBX_txn *txn;
public:
- __forceinline txn_ptr(MDBX_env *pEnv)
- {
- int rc = mdbx_txn_begin(pEnv, nullptr, 0, &txn);
- /* FIXME: throw an exception */
- _ASSERT(rc == MDBX_SUCCESS);
- UNREFERENCED_PARAMETER(rc);
- }
+ __forceinline txn_ptr(MDBX_txn *_txn) :
+ txn(_txn)
+ {}
__forceinline ~txn_ptr()
{