From 47ca2f7095f2aa6e395b7a5cfec46bce35a5d623 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 26 Jul 2017 21:37:40 +0100 Subject: ITS#8699 more for cursor_del ITS#8622 Set C_DEL flag on reinit'd subcursor --- libraries/liblmdb/mdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libraries/liblmdb/mdb.c') diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 970e1ef..148dc45 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -9312,8 +9312,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; + } } } } -- cgit v1.2.3