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

This is caused by commit c92f7e28(MDEV-8139).
InnoDB fails to set the page status as FREED in buffer pool while freeing
the extent.
parent b5dab19e
...@@ -2635,9 +2635,9 @@ fseg_free_extent( ...@@ -2635,9 +2635,9 @@ fseg_free_extent(
fsp_free_extent(space, page, mtr); 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)) { 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__); __FILE__, __LINE__);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment