summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src/dbmodulechain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbmodulechain.cpp')
-rw-r--r--plugins/Dbx_mdbx/src/dbmodulechain.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Dbx_mdbx/src/dbmodulechain.cpp b/plugins/Dbx_mdbx/src/dbmodulechain.cpp
index 54e9631c43..10bb0f90e6 100644
--- a/plugins/Dbx_mdbx/src/dbmodulechain.cpp
+++ b/plugins/Dbx_mdbx/src/dbmodulechain.cpp
@@ -25,8 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
int CDbxMDBX::InitModules()
{
- txn_ptr_ro trnlck(m_txn_ro);
- cursor_ptr pCursor(m_txn_ro, m_dbModules);
+ cursor_ptr pCursor(StartTran(), m_dbModules);
MDBX_val key, data;
while (mdbx_cursor_get(pCursor, &key, &data, MDBX_NEXT) == MDBX_SUCCESS) {