From abb13ba176afd8c5da573a8b4b7808082e25b9b8 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 8 Dec 2015 16:43:55 +0100 Subject: [PATCH] ITS#8334 Fix MDB_APPENDDUP vs. rewrite(single item) --- libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 09f1509..0c93c37 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;