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-Url: https://git.sur5r.net/?a=commitdiff_plain;h=abb13ba176afd8c5da573a8b4b7808082e25b9b8;p=openldap ITS#8334 Fix MDB_APPENDDUP vs. rewrite(single item) --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 09f15099d2..0c93c371b4 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -6642,7 +6642,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;