From 8b99a8b3a16763267cb2339bb822c2595b659935 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sat, 19 Mar 2016 12:19:51 +0000 Subject: dbx_lmdb: more fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@16509 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_mdb/src/dbcontacts.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugins/Dbx_mdb/src/dbcontacts.cpp') diff --git a/plugins/Dbx_mdb/src/dbcontacts.cpp b/plugins/Dbx_mdb/src/dbcontacts.cpp index 411f93140f..e2c67c3981 100644 --- a/plugins/Dbx_mdb/src/dbcontacts.cpp +++ b/plugins/Dbx_mdb/src/dbcontacts.cpp @@ -219,7 +219,9 @@ void CDbxMdb::GatherContactHistory(MCONTACT hContact, LIST &list) BOOL CDbxMdb::MetaMergeHistory(DBCachedContact *ccMeta, DBCachedContact *ccSub) { - LIST list(10000); + mir_cslock lck(m_csDbAccess); + + LIST list(1000); GatherContactHistory(ccSub->contactID, list); for (int i = 0; i < list.getCount(); i++) { @@ -254,7 +256,9 @@ BOOL CDbxMdb::MetaMergeHistory(DBCachedContact *ccMeta, DBCachedContact *ccSub) BOOL CDbxMdb::MetaSplitHistory(DBCachedContact *ccMeta, DBCachedContact *ccSub) { - LIST list(10000); + mir_cslock lck(m_csDbAccess); + + LIST list(1000); GatherContactHistory(ccSub->contactID, list); for (int i = 0; i < list.getCount(); i++) { -- cgit v1.2.3