Fix GET_BOTH_RANGE

On near match, return the matched data.
vmware
Howard Chu 11 years ago
parent b77689f975
commit 1ffb5e1cba
  1. 1
      libraries/liblmdb/mdb.c

@ -5358,6 +5358,7 @@ set1:
if (op == MDB_GET_BOTH || rc > 0) if (op == MDB_GET_BOTH || rc > 0)
return MDB_NOTFOUND; return MDB_NOTFOUND;
rc = 0; rc = 0;
*data = d2;
} }
} else { } else {

Loading…
Cancel
Save