[Date Prev][Date Next]
(ITS#8393) LMDB - MDB_GET_BOTH broken on non-dup value
Full_Name: Howard Chu
Submission from: (NULL) (22.214.171.124)
Submitted by: hyc
Using mdb_cursor_get(MDB_GET_BOTH) doesn't return the data item if the record is
not a dup (i.e., there's only a single value under the key) even though it
This doesn't affect slapd because (1) when we use this command, the key always
has more than 1 value and (2) when we use it, the data item we passed in is
exactly the same as what we would get returned, on a match.
This affects other apps where both (1) and (2) are not true, e.g. a compare
function is used that only compares a subset of the data, in order to retrieve
the full record.