From: Howard Chu Date: Wed, 26 Jul 2017 20:37:40 +0000 (+0100) Subject: ITS#8699 more for cursor_del ITS#8622 X-Git-Tag: LMDB_0.9.22~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35251f68475891e018fb9004090d4e554cdb5554;p=openldap ITS#8699 more for cursor_del ITS#8622 Set C_DEL flag on reinit'd subcursor --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index e9d385c8ae..bc0ed354ff 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -8465,8 +8465,10 @@ mdb_cursor_del0(MDB_cursor *mc) if (m3->mc_xcursor->mx_cursor.mc_flags & C_INITIALIZED) { if (!(node->mn_flags & F_SUBDATA)) m3->mc_xcursor->mx_cursor.mc_pg[0] = NODEDATA(node); - } else + } else { mdb_xcursor_init1(m3, node); + m3->mc_xcursor->mx_cursor.mc_flags |= C_DEL; + } } } }