From e43fa77eaaee72c5c390bd69addcc8c3e131d72f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 5 Apr 2013 03:44:56 -0700 Subject: [PATCH] Revert "Fix 6beaad52129da5353fd40c0ec48e6a78c4f71a2e" This reverts commit 8eef7a4275eda8f2fa2e0d1e67c1d5cbcd91607e. Previous commit was correct, duplicate keys should not appear here. --- libraries/liblmdb/mdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 809b39fab9..cb3bbf540d 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -4968,8 +4968,8 @@ mdb_cursor_put(MDB_cursor *mc, MDB_val *key, MDB_val *data, if (rc > 0) { rc = MDB_NOTFOUND; mc->mc_ki[mc->mc_top]++; - } else if (rc < 0) { - /* new key is < last key */ + } else { + /* new key is <= last key */ rc = MDB_KEYEXIST; } } -- 2.39.5