diff options
-rw-r--r-- | plugins/Dbx_mdbx/src/dbevents.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp index e2494a9c00..bcbc8f6b51 100644 --- a/plugins/Dbx_mdbx/src/dbevents.cpp +++ b/plugins/Dbx_mdbx/src/dbevents.cpp @@ -658,7 +658,8 @@ public: return 0;
dbKey = *(const DBEventSortingKey *)key.iov_base;
- if (!m_bForward && dbKey.hContact) {
+ // we could easily move position to the next contact, if it exists
+ if (!m_bForward && dbKey.hContact != hContact) {
if (mdbx_cursor_get(m_pOwner->m_curEventsSort, &key, &data, MDBX_PREV) != MDBX_SUCCESS)
return 0;
|