mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 03:29:35 -05:00
parent
0144da6eab
commit
912e09fd04
1 changed files with 4 additions and 2 deletions
|
|
@ -5231,9 +5231,10 @@ 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)
|
||||
if (op == MDB_SET_RANGE) {
|
||||
rc = 0;
|
||||
goto set1;
|
||||
else
|
||||
} else
|
||||
return MDB_NOTFOUND;
|
||||
}
|
||||
}
|
||||
|
|
@ -5298,6 +5299,7 @@ set1:
|
|||
if (rc) {
|
||||
if (op == MDB_GET_BOTH || rc > 0)
|
||||
return MDB_NOTFOUND;
|
||||
rc = 0;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue