mdbx: backport - ITS#8699 more for cursor_del ITS#8622.

Set C_DEL flag on reinit'd subcursor

Change-Id: I8ad1c10afd481f61b8e521d02c4d2de3be5089d7
This commit is contained in:
Howard Chu 2017-07-26 21:37:40 +01:00 committed by Leo Yuriev
parent d634336e1f
commit 7626bcfdde

View File

@ -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;
}
}
}
}