]> git.sur5r.net Git - openldap/commitdiff
ITS#8334 Fix MDB_APPENDDUP vs. rewrite(single item)
authorHallvard Furuseth <hallvard@openldap.org>
Tue, 8 Dec 2015 15:43:55 +0000 (16:43 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 8 Dec 2015 15:43:55 +0000 (16:43 +0100)
libraries/liblmdb/mdb.c

index 09f15099d215d0c2d89c3c61c1f6834dd943e6e3..0c93c371b450ac41833e86cbc0f0e7c9b85de1fb 100644 (file)
@@ -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;