summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/dbmodulechain.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-05-07 15:38:25 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-05-07 15:38:25 +0000
commit0d3b1e2959bdf303c9e60bc9d3940e51e5e3e1d1 (patch)
tree0c3b11fc01cef6dedaf925692ceba0847e6d1cd8 /plugins/Dbx_mdb/src/dbmodulechain.cpp
parent9cd2417aa9352b4f41cd3abf2ff54b6457b053fb (diff)
dbx_lmdb: optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@16813 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbmodulechain.cpp')
-rw-r--r--plugins/Dbx_mdb/src/dbmodulechain.cpp3
1 files changed, 1 insertions, 2 deletions
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)