mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 18:44:13 +08:00
mdbx: fix mdbx_cursor_on_last().
This commit is contained in:
parent
1708025651
commit
d573c9d54e
2
mdbx.c
2
mdbx.c
@ -388,7 +388,7 @@ int mdbx_cursor_on_last(MDB_cursor *mc)
|
|||||||
unsigned i;
|
unsigned i;
|
||||||
for(i = 0; i < mc->mc_snum; ++i) {
|
for(i = 0; i < mc->mc_snum; ++i) {
|
||||||
unsigned nkeys = NUMKEYS(mc->mc_pg[i]);
|
unsigned nkeys = NUMKEYS(mc->mc_pg[i]);
|
||||||
if (mc->mc_ki[i] != nkeys - 1)
|
if (mc->mc_ki[i] < nkeys - 1)
|
||||||
return MDBX_RESULT_FALSE;
|
return MDBX_RESULT_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user