mdbx: fix assertion inside mdbx_cursor_del0().

Change-Id: I87ad3777215bee8a2b19f53ec92299db89431fa4
This commit is contained in:
Leonid Yuriev 2020-10-28 20:19:44 +03:00
parent 105947b50c
commit 16c900b0a1

View File

@ -15534,8 +15534,7 @@ static int mdbx_cursor_del0(MDBX_cursor *mc) {
}
if (m3->mc_ki[mc->mc_top] >= ki ||
/* moved to right sibling */ m3->mc_pg[mc->mc_top] != mp) {
mdbx_cassert(m3, (m3->mc_flags & C_EOF) == 0);
if (m3->mc_xcursor) {
if (m3->mc_xcursor && !(m3->mc_flags & C_EOF)) {
MDBX_node *node =
page_node(m3->mc_pg[m3->mc_top], m3->mc_ki[m3->mc_top]);
/* If this node has dupdata, it may need to be reinited