From 4c10b1b16a1dfc9aceeaea5c668da890a97f55b6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 Apr 2015 17:22:19 +0000 Subject: table tuning git-svn-id: http://svn.miranda-ng.org/main/trunk@12588 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dbx_kyoto/src/dbevents.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/Dbx_kyoto/src/dbevents.cpp') diff --git a/plugins/Dbx_kyoto/src/dbevents.cpp b/plugins/Dbx_kyoto/src/dbevents.cpp index ec4c562751..c39848241b 100644 --- a/plugins/Dbx_kyoto/src/dbevents.cpp +++ b/plugins/Dbx_kyoto/src/dbevents.cpp @@ -314,6 +314,7 @@ STDMETHODIMP_(MEVENT) CDbxKV::FindNextEvent(MCONTACT contactID, MEVENT hDbEvent) DBEventSortingKey keyVal = { contactID, ts, hDbEvent+1 }; cursor_ptr cursor(m_dbEventsSort); cursor->jump((LPCSTR)&keyVal, sizeof(keyVal)); + cursor->step(); size_t size; DBEventSortingKey *pKey = (DBEventSortingKey*)cursor->get_key(&size); @@ -343,6 +344,7 @@ STDMETHODIMP_(MEVENT) CDbxKV::FindPrevEvent(MCONTACT contactID, MEVENT hDbEvent) DBEventSortingKey keyVal = { contactID, ts, hDbEvent-1 }; cursor_ptr cursor(m_dbEventsSort); cursor->jump_back((LPCSTR)&keyVal, sizeof(keyVal)); + cursor->step_back(); size_t size; DBEventSortingKey *pKey = (DBEventSortingKey*)cursor->get_key(&size); -- cgit v1.2.3