From c9ad134e56cc70119aaab8c8ac60c837fbb98dac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Thu, 4 Jan 2018 17:59:58 +0200 Subject: [PATCH] Relax a bogus debug assertion While insert direction makes no sense for SPATIAL INDEX (R-tree), the field is apparently being used (and basically garbage). Relax the debug assertion that was added in MDEV-11369. --- storage/innobase/include/page0page.ic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/innobase/include/page0page.ic b/storage/innobase/include/page0page.ic index ee908896050..e23b223ed1e 100644 --- a/storage/innobase/include/page0page.ic +++ b/storage/innobase/include/page0page.ic @@ -1116,7 +1116,7 @@ page_get_instant(const page_t* page) ut_ad(i <= PAGE_NO_DIRECTION || !page_is_comp(page)); break; case FIL_PAGE_RTREE: - ut_ad(i == PAGE_NO_DIRECTION || i == 0); + ut_ad(i <= PAGE_NO_DIRECTION); break; default: ut_ad(!"invalid page type");