diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-23 19:51:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-23 19:51:30 +0300 |
commit | 80207f75648fad4294a77ff9ce50f0edaedffeca (patch) | |
tree | 84901161521d83fc1df371f0a7ab1924b61c0b6f /plugins/Dbx_mdbx/src/dbcrypt.cpp | |
parent | 4a54d1481e37dbac6c055e44abc32e8f72b04a15 (diff) |
dbx_mdbx:
- fix for a name conflict;
- stricter transaction scope;
- version bump
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbcrypt.cpp')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbcrypt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dbx_mdbx/src/dbcrypt.cpp b/plugins/Dbx_mdbx/src/dbcrypt.cpp index 77c1f1c59b..1e73ddddcc 100644 --- a/plugins/Dbx_mdbx/src/dbcrypt.cpp +++ b/plugins/Dbx_mdbx/src/dbcrypt.cpp @@ -69,7 +69,7 @@ int CDbxMDBX::InitCrypt() {
CRYPTO_PROVIDER *pProvider;
- txn_ptr_ro txn(m_txn);
+ txn_ptr_ro txn(m_txn_ro);
MDBX_val key = { DBKey_Crypto_Provider, sizeof(DBKey_Crypto_Provider) }, value;
if (mdbx_get(txn, m_dbCrypto, &key, &value) == MDBX_SUCCESS) {
@@ -160,7 +160,7 @@ int CDbxMDBX::EnableEncryption(bool bEncrypted) return 0;
{
- txn_ptr_ro txnro(m_txn);
+ txn_ptr_ro txnro(m_txn_ro);
MDBX_stat st;
mdbx_dbi_stat(txnro, m_dbEvents, &st, sizeof(st));
|