summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-10-08 13:55:09 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-10-08 13:55:19 +0300
commita9657437f9007340842330f87c262f90b65fab9c (patch)
treedaf08fe3f4be1b0e3b21c21157419fa9879ed80e /plugins/Dbx_mdbx/src
parentfd0b9a259e88f0065abecdd8c73f42d1cc316caa (diff)
Dbx_mdbx: fix for assert during database encryption
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-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);