Skip to content

Commit

Permalink
MDEV-27016: Assertion 'id.page_no() < space.size' failed
Browse files Browse the repository at this point in the history
buf_flush_check_neighbors(): Relax a debug assertion that
could fail for the very last page(s) of a ROW_FORMAT=COMPRESSED tables          using a 1024-byte or 2048-byte page size.

This assertion started to fail after
commit d09426f (MDEV-26537)
modified the .ibd file extension to occur in steps of 4096 bytes.
  • Loading branch information
dr-m committed Nov 16, 2021
1 parent 72afeaf commit 079516f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/innobase/buf/buf0flu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,9 @@ static page_id_t buf_flush_check_neighbors(const fil_space_t &space,
page_id_t &id, bool contiguous,
bool lru)
{
ut_ad(id.page_no() < space.size);
ut_ad(id.page_no() < space.size +
(space.physical_size() == 2048 ? 1
: space.physical_size() == 1024 ? 3 : 0));
/* When flushed, dirty blocks are searched in neighborhoods of this
size, and flushed along with the original page. */
const ulint s= buf_pool.curr_size / 16;
Expand Down

0 comments on commit 079516f

Please sign in to comment.