From 25fd09df6daa7e0609d419dad44e5d8a05cf80db 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 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; -- 2.39.5