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

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)