]> 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>
Wed, 6 Jan 2016 19:52:48 +0000 (20:52 +0100)
libraries/liblmdb/mdb.c

index a624cba3c4f0418c9ab142b1d7032e78b8985ea6..e6bae4f8612241e574972cd2110f35a191a1381e 100644 (file)
@@ -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;