From a9657437f9007340842330f87c262f90b65fab9c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Oct 2018 13:55:09 +0300 Subject: Dbx_mdbx: fix for assert during database encryption --- plugins/Dbx_mdbx/src/dbcrypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Dbx_mdbx/src') 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); -- cgit v1.2.3