From 7626bcfddeec5591beae62dda91b1cc3f20c0fc2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 26 Jul 2017 21:37:40 +0100 Subject: [PATCH] mdbx: backport - ITS#8699 more for cursor_del ITS#8622. Set C_DEL flag on reinit'd subcursor Change-Id: I8ad1c10afd481f61b8e521d02c4d2de3be5089d7 --- src/mdbx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mdbx.c b/src/mdbx.c index c10c6f28..83cbc55d 100644 --- a/src/mdbx.c +++ b/src/mdbx.c @@ -8642,8 +8642,10 @@ static int mdbx_cursor_del0(MDBX_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 { mdbx_xcursor_init1(m3, node); + m3->mc_xcursor->mx_cursor.mc_flags |= C_DEL; + } } } }