diff --git a/mdb.c b/mdb.c index 69d4c5d1..1503d41a 100644 --- a/mdb.c +++ b/mdb.c @@ -6640,7 +6640,7 @@ more: /* does data match? */ if (!mc->mc_dbx->md_dcmp(data, &olddata)) { - if (unlikely(flags & MDB_NODUPDATA)) + if (unlikely(flags & (MDB_NODUPDATA|MDB_APPENDDUP))) return MDB_KEYEXIST; /* overwrite it */ goto current;