From: Howard Chu Date: Thu, 5 Sep 2013 13:02:07 +0000 (-0700) Subject: More for 5f6fa8c04204888c4ff7ac6be1868d81ff4410a8 X-Git-Tag: OPENLDAP_REL_ENG_2_4_37~39^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=90c55178db46379c28a4ec7c2b36e36e992cd288;p=openldap More for 5f6fa8c04204888c4ff7ac6be1868d81ff4410a8 Reset delete flag in cursor_put(). --- 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) {