mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
parent
2e1d10472c
commit
a87c8fd8c9
1 changed files with 2 additions and 9 deletions
|
|
@ -6346,16 +6346,9 @@ mdb_cursor_get(MDB_cursor *mc, MDB_val *key, MDB_val *data,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
rc = MDB_SUCCESS;
|
rc = MDB_SUCCESS;
|
||||||
if (!(mc->mc_xcursor->mx_cursor.mc_flags & C_INITIALIZED))
|
if (!(mc->mc_xcursor->mx_cursor.mc_flags & C_INITIALIZED) ||
|
||||||
|
(mc->mc_xcursor->mx_cursor.mc_flags & C_EOF))
|
||||||
break;
|
break;
|
||||||
if (mc->mc_xcursor->mx_cursor.mc_flags & C_EOF) {
|
|
||||||
MDB_cursor *mx = &mc->mc_xcursor->mx_cursor;
|
|
||||||
if (mx->mc_ki[mx->mc_top] >= NUMKEYS(mx->mc_pg[mx->mc_top])-1) {
|
|
||||||
rc = MDB_NOTFOUND;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
mx->mc_flags ^= C_EOF;
|
|
||||||
}
|
|
||||||
goto fetchm;
|
goto fetchm;
|
||||||
case MDB_NEXT_MULTIPLE:
|
case MDB_NEXT_MULTIPLE:
|
||||||
if (data == NULL) {
|
if (data == NULL) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue