summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Dbx_mdbx/src/dbcrypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbcrypt.cpp b/plugins/Dbx_mdbx/src/dbcrypt.cpp
index 233d0d1576..4cf6ea1b1a 100644
--- a/plugins/Dbx_mdbx/src/dbcrypt.cpp
+++ b/plugins/Dbx_mdbx/src/dbcrypt.cpp
@@ -187,7 +187,7 @@ int CDbxMDBX::EnableEncryption(bool bEncrypted)
for (size_t i = 0; i < portion; i++) {
MEVENT &hDbEvent = lstEvents[i];
MDBX_val key = { &hDbEvent, sizeof(MEVENT) }, data;
- int rc = mdbx_get(txnro, m_dbEvents, &key, &data);
+ int rc = mdbx_get(trnlck, m_dbEvents, &key, &data);
if (rc != MDBX_SUCCESS) {
if (rc != MDBX_NOTFOUND)
assert(rc == MDBX_SUCCESS);