mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:34:14 +08:00
mdbx: backport - ITS#8334 Fix MDB_APPENDDUP vs. rewrite(single item).
Change-Id: I7742bd2e75ef670dac31a46d270a96ee28c20639
This commit is contained in:
parent
b848f5552f
commit
4fcbaa44f3
2
mdb.c
2
mdb.c
@ -6640,7 +6640,7 @@ more:
|
|||||||
|
|
||||||
/* does data match? */
|
/* does data match? */
|
||||||
if (!mc->mc_dbx->md_dcmp(data, &olddata)) {
|
if (!mc->mc_dbx->md_dcmp(data, &olddata)) {
|
||||||
if (unlikely(flags & MDB_NODUPDATA))
|
if (unlikely(flags & (MDB_NODUPDATA|MDB_APPENDDUP)))
|
||||||
return MDB_KEYEXIST;
|
return MDB_KEYEXIST;
|
||||||
/* overwrite it */
|
/* overwrite it */
|
||||||
goto current;
|
goto current;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user