From 90c55178db46379c28a4ec7c2b36e36e992cd288 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 5 Sep 2013 06:02:07 -0700 Subject: [PATCH] More for 5f6fa8c04204888c4ff7ac6be1868d81ff4410a8 Reset delete flag in cursor_put(). --- libraries/liblmdb/mdb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 2b61adc5c9..16db71ecde 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5688,6 +5688,9 @@ mdb_cursor_put(MDB_cursor *mc, MDB_val *key, MDB_val *data, return rc; } + if (mc->mc_flags & C_DEL) + mc->mc_flags ^= C_DEL; + /* Cursor is positioned, check for room in the dirty list */ if (!nospill) { if (flags & MDB_MULTIPLE) { -- 2.39.5