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

rawpart
Hallvard Furuseth 9 years ago
parent c4e31434c7
commit abb13ba176
  1. 2
      libraries/liblmdb/mdb.c

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

Loading…
Cancel
Save