Skip to content

Commit 079516f

Browse files
committed
MDEV-27016: Assertion 'id.page_no() < space.size' failed
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.
1 parent 72afeaf commit 079516f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/innobase/buf/buf0flu.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,9 @@ static page_id_t buf_flush_check_neighbors(const fil_space_t &space,
997997
page_id_t &id, bool contiguous,
998998
bool lru)
999999
{
1000-
ut_ad(id.page_no() < space.size);
1000+
ut_ad(id.page_no() < space.size +
1001+
(space.physical_size() == 2048 ? 1
1002+
: space.physical_size() == 1024 ? 3 : 0));
10011003
/* When flushed, dirty blocks are searched in neighborhoods of this
10021004
size, and flushed along with the original page. */
10031005
const ulint s= buf_pool.curr_size / 16;

0 commit comments

Comments
 (0)