mdbx: backport - ITS#8393 fix MDB_GET_BOTH on non-dup record.

Change-Id: I96028ff6de55915bab98a7d0e2d97072296fc769
This commit is contained in:
Howard Chu 2016-03-28 01:35:56 +01:00 committed by Leo Yuriev
parent 33e2b52118
commit e7859934f2
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
LMDB 0.9 Change Log
MDBX
Fix ITS#8393 case MDB_GET_BOTH on non-dup record
LMDB 0.9.18 Release (2016/02/05)
Add MDB_PREV_MULTIPLE
already done for mdbx - Fix robust mutex detection on glibc 2.10-11 (ITS#8330)

2
mdb.c
View File

@ -6167,8 +6167,8 @@ set1:
if (op == MDB_GET_BOTH || rc > 0)
return MDB_NOTFOUND;
rc = 0;
*data = olddata;
}
*data = olddata;
} else {
if (mc->mc_xcursor)