From: Hallvard Furuseth Date: Tue, 8 Dec 2015 15:43:55 +0000 (+0100) Subject: ITS#8334 Fix MDB_APPENDDUP vs. rewrite(single item) X-Git-Tag: LMDB_0.9.18~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=25fd09df6daa7e0609d419dad44e5d8a05cf80db;p=openldap ITS#8334 Fix MDB_APPENDDUP vs. rewrite(single item) --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index a624cba3c4..e6bae4f861 100644 --- a/libraries/liblmdb/mdb.c +++ b/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;