Skip to content

Commit

Permalink
Relax a bogus debug assertion
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dr-m committed Jan 4, 2018
1 parent 145ae15 commit c9ad134
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/innobase/include/page0page.ic
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c9ad134

Please sign in to comment.