mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-27 22:32:19 +08:00
mdbx: fix mdbx_cursor_on_last().
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user