diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbevents.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp index 5a65990419..e2494a9c00 100644 --- a/plugins/Dbx_mdbx/src/dbevents.cpp +++ b/plugins/Dbx_mdbx/src/dbevents.cpp @@ -657,6 +657,13 @@ public: if (mdbx_cursor_get(m_pOwner->m_curEventsSort, &key, &data, MDBX_SET_RANGE) != MDBX_SUCCESS)
return 0;
dbKey = *(const DBEventSortingKey *)key.iov_base;
+
+ if (!m_bForward && dbKey.hContact) {
+ if (mdbx_cursor_get(m_pOwner->m_curEventsSort, &key, &data, MDBX_PREV) != MDBX_SUCCESS)
+ return 0;
+
+ dbKey = *(const DBEventSortingKey *)key.iov_base;
+ }
}
else {
if (mdbx_cursor_get(m_pOwner->m_curEventsSort, &key, &data, MDBX_SET) != MDBX_SUCCESS)
|