diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-03 17:22:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-03 17:22:19 +0000 |
commit | 4c10b1b16a1dfc9aceeaea5c668da890a97f55b6 (patch) | |
tree | a499ab2286a14679fb1e45630f7f773465ff397e /plugins/Dbx_kyoto/src/dbevents.cpp | |
parent | e164ace17434d7f21bd831f41211a9515feebeda (diff) |
table tuning
git-svn-id: http://svn.miranda-ng.org/main/trunk@12588 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_kyoto/src/dbevents.cpp')
-rw-r--r-- | plugins/Dbx_kyoto/src/dbevents.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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);
|