From 5de1d3b7666b26291eaddcfa99354f0662a3bec2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 2 Apr 2018 20:50:08 +0300 Subject: Dbx_mdbx: fix for record number calculation --- plugins/Dbx_mdbx/src/dbcontacts.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Dbx_mdbx/src/dbcontacts.cpp b/plugins/Dbx_mdbx/src/dbcontacts.cpp index f59e57c4b3..320b479984 100644 --- a/plugins/Dbx_mdbx/src/dbcontacts.cpp +++ b/plugins/Dbx_mdbx/src/dbcontacts.cpp @@ -26,7 +26,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. STDMETHODIMP_(LONG) CDbxMDBX::GetContactCount(void) { MDBX_stat st; - mdbx_dbi_stat(m_txn_ro, m_dbContacts, &st, sizeof(st)); + txn_ptr_ro trnlck(m_txn_ro); + mdbx_dbi_stat(trnlck, m_dbContacts, &st, sizeof(st)); return st.ms_entries; } -- cgit v1.2.3