ITS#8334 Fix MDB_APPENDDUP vs. rewrite(single item)

mdb.RE/0.9
Hallvard Furuseth 9 years ago
parent 03f1c12bbe
commit 25fd09df6d
  1. 2
      libraries/liblmdb/mdb.c

@ -6491,7 +6491,7 @@ more:
#endif
/* does data match? */
if (!dcmp(data, &olddata)) {
if (flags & MDB_NODUPDATA)
if (flags & (MDB_NODUPDATA|MDB_APPENDDUP))
return MDB_KEYEXIST;
/* overwrite it */
goto current;

Loading…
Cancel
Save