From 1ffb5e1cba200b0e362d1f7a56f09f8ad8081451 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 4 Dec 2013 18:42:49 -0800 Subject: [PATCH] Fix GET_BOTH_RANGE On near match, return the matched data. --- libraries/liblmdb/mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 46e4490c47..58dd90515e 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5358,6 +5358,7 @@ set1: if (op == MDB_GET_BOTH || rc > 0) return MDB_NOTFOUND; rc = 0; + *data = d2; } } else { -- 2.39.5