mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#7681 fix mdb_cursor_set behaviour for MDB_SET_RANGE
This commit is contained in:
parent
5f6fa8c042
commit
18a07eb7c2
@ -5227,6 +5227,9 @@ mdb_cursor_set(MDB_cursor *mc, MDB_val *key, MDB_val *data,
|
||||
if (!mc->mc_top) {
|
||||
/* There are no other pages */
|
||||
mc->mc_ki[mc->mc_top] = 0;
|
||||
if (op == MDB_SET_RANGE)
|
||||
goto set1;
|
||||
else
|
||||
return MDB_NOTFOUND;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user