Commit 25fd09df authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

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

parent 03f1c12b
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment