summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdb/src/dbintf.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-02-21 09:42:11 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-02-21 09:42:11 +0000
commit5380ed0fad80744e3093a6fb6f13f8d8a7b2e03a (patch)
treeaf15eeb3b7f96efca86f4d05afc9df694962e020 /plugins/Dbx_mdb/src/dbintf.cpp
parente151d6242dafb449fae9784e19e8122c44b57095 (diff)
dbx_lmdb: speed optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@16317 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbintf.cpp')
-rw-r--r--plugins/Dbx_mdb/src/dbintf.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/Dbx_mdb/src/dbintf.cpp b/plugins/Dbx_mdb/src/dbintf.cpp
index a036f5090f..93606df78c 100644
--- a/plugins/Dbx_mdb/src/dbintf.cpp
+++ b/plugins/Dbx_mdb/src/dbintf.cpp
@@ -117,8 +117,13 @@ int CDbxMdb::Load(bool bSkipInit)
{
mdb_txn_begin(m_pMdbEnv, nullptr, MDB_RDONLY, &m_txn);
+
mdb_cursor_open(m_txn, m_dbEvents, &m_curEvents);
mdb_cursor_open(m_txn, m_dbEventsSort, &m_curEventsSort);
+ mdb_cursor_open(m_txn, m_dbSettings, &m_curSettings);
+ mdb_cursor_open(m_txn, m_dbModules, &m_curModules);
+ mdb_cursor_open(m_txn, m_dbContacts, &m_curContacts);
+
mdb_txn_reset(m_txn);
}