summaryrefslogtreecommitdiff
path: root/storage/innobase/include/page0page.ic
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-12-20 17:55:13 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-12-20 19:21:37 +0200
commit8174e68895c468a2286688962a65206e677b7c51 (patch)
treeaed3ac3d8805c85464c374b4735591da3899af79 /storage/innobase/include/page0page.ic
parentf6b58d29163adcb3b3fe1b48c56c9b80666f0b88 (diff)
downloadmariadb-git-8174e68895c468a2286688962a65206e677b7c51.tar.gz
MDEV-21371 Assertion failure in page_rec_get_next_low() during innodb_gis.rtree_compress
A debug assertion that was added in commit ed0793e096a17955c5a03844b248bcf8303dd335 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).
Diffstat (limited to 'storage/innobase/include/page0page.ic')
-rw-r--r--storage/innobase/include/page0page.ic1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/include/page0page.ic b/storage/innobase/include/page0page.ic
index 6369932db1b..98b518187b5 100644
--- a/storage/innobase/include/page0page.ic
+++ b/storage/innobase/include/page0page.ic
@@ -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));