mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-21 18:28:20 +08:00
mdbx-test: fix speculum-check iterator.
Change-Id: Idaeea908fdcd7b2c1248ae10eeb7f394d69bb987
This commit is contained in:
parent
1bbf20bf39
commit
75e1da1f2d
@ -749,8 +749,8 @@ void testcase::speculum_check_cursor(const char *where, const char *stage,
|
|||||||
MDBX_val cursor_key = {};
|
MDBX_val cursor_key = {};
|
||||||
MDBX_val cursor_data = {};
|
MDBX_val cursor_data = {};
|
||||||
int err;
|
int err;
|
||||||
if (std::next(it) == speculum.end() && op == MDBX_PREV &&
|
if (it != speculum.end() && std::next(it) == speculum.end() &&
|
||||||
(config.params.table_flags & MDBX_DUPSORT)) {
|
op == MDBX_PREV && (config.params.table_flags & MDBX_DUPSORT)) {
|
||||||
/* Workaround for MDBX/LMDB flaw */
|
/* Workaround for MDBX/LMDB flaw */
|
||||||
err = mdbx_cursor_get(cursor, &cursor_key, &cursor_data, MDBX_LAST);
|
err = mdbx_cursor_get(cursor, &cursor_key, &cursor_data, MDBX_LAST);
|
||||||
if (err == MDBX_SUCCESS)
|
if (err == MDBX_SUCCESS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user