mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx: fix false-negative mdbx_cursor_eof()
result.
Fixes https://github.com/erthink/libmdbx/issues/207.
This commit is contained in:
parent
06aa596519
commit
5db855d728
@ -20661,7 +20661,7 @@ int mdbx_cursor_eof(const MDBX_cursor *mc) {
|
||||
if (mc->mc_snum == 0)
|
||||
return MDBX_RESULT_TRUE;
|
||||
|
||||
if ((mc->mc_flags & C_EOF) &&
|
||||
if ((mc->mc_flags & C_EOF) ||
|
||||
mc->mc_ki[mc->mc_top] >= page_numkeys(mc->mc_pg[mc->mc_top]))
|
||||
return MDBX_RESULT_TRUE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user