Skip to content

Commit

Permalink
MDEV-21371 Assertion failure in page_rec_get_next_low() during innodb…
Browse files Browse the repository at this point in the history
…_gis.rtree_compress

A debug assertion that was added in
commit ed0793e
turns out to be too strict. In the test innodb_gis.rtree_compress,4k
the function is sometimes being invoked by purge for a
spatial index root page that is not a leaf page (PAGE_LEVEL is 1).
  • Loading branch information
dr-m committed Dec 20, 2019
1 parent f6b58d2 commit 8174e68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/innobase/include/page0page.ic
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ page_rec_get_next_low(
}

ut_ad(page_rec_is_infimum(rec)
|| (!page_is_leaf(page) && !page_has_prev(page))
|| !(rec_get_info_bits(page + offs, comp)
& REC_INFO_MIN_REC_FLAG));

Expand Down

0 comments on commit 8174e68

Please sign in to comment.