From 0d3b1e2959bdf303c9e60bc9d3940e51e5e3e1d1 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 7 May 2016 15:38:25 +0000 Subject: dbx_lmdb: optimization git-svn-id: http://svn.miranda-ng.org/main/trunk@16813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mdb/src/dbmodulechain.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/Dbx_mdb/src/dbmodulechain.cpp') diff --git a/plugins/Dbx_mdb/src/dbmodulechain.cpp b/plugins/Dbx_mdb/src/dbmodulechain.cpp index b85388eeff..ddd2296f7f 100644 --- a/plugins/Dbx_mdb/src/dbmodulechain.cpp +++ b/plugins/Dbx_mdb/src/dbmodulechain.cpp @@ -42,12 +42,11 @@ int CDbxMdb::InitModuleNames(void) { m_maxModuleID = 0; - mir_cslock lck(m_csDbAccess); txn_ptr_ro trnlck(m_txn); cursor_ptr_ro cursor(m_curModules); MDB_val key, data; - while (mdb_cursor_get(cursor, &key, &data, MDB_NEXT) == 0) + while (mdb_cursor_get(cursor, &key, &data, MDB_NEXT) == MDB_SUCCESS) { DBModuleName *pmod = (DBModuleName*)data.mv_data; if (pmod->dwSignature != DBMODULENAME_SIGNATURE) -- cgit v1.2.3