MDEV-24765 fseg_free_extent fails to call buf_page_free() for the whole segment

This is caused by commit c92f7e287fc0e21dc1b181284b1f8e2139d1c331(MDEV-8139).
InnoDB fails to set the page status as FREED in buffer pool while freeing
the extent.
This commit is contained in:
Thirunarayanan Balathandayuthapani 2021-02-02 18:16:16 +05:30
parent b5dab19efa
commit b76e5c6610

View file

@ -2635,9 +2635,9 @@ fseg_free_extent(
fsp_free_extent(space, page, mtr);
for (ulint i = 0; i < FSP_EXTENT_SIZE; i++) {
for (uint32_t i = 0; i < FSP_EXTENT_SIZE; i++) {
if (!xdes_is_free(descr, i)) {
buf_page_free(space, first_page_in_extent + 1, mtr,
buf_page_free(space, first_page_in_extent + i, mtr,
__FILE__, __LINE__);
}
}