Skip to content

Commit b76e5c6

Browse files
MDEV-24765 fseg_free_extent fails to call buf_page_free() for the whole segment
This is caused by commit c92f7e2(MDEV-8139). InnoDB fails to set the page status as FREED in buffer pool while freeing the extent.
1 parent b5dab19 commit b76e5c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/innobase/fsp/fsp0fsp.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,9 +2635,9 @@ fseg_free_extent(
26352635

26362636
fsp_free_extent(space, page, mtr);
26372637

2638-
for (ulint i = 0; i < FSP_EXTENT_SIZE; i++) {
2638+
for (uint32_t i = 0; i < FSP_EXTENT_SIZE; i++) {
26392639
if (!xdes_is_free(descr, i)) {
2640-
buf_page_free(space, first_page_in_extent + 1, mtr,
2640+
buf_page_free(space, first_page_in_extent + i, mtr,
26412641
__FILE__, __LINE__);
26422642
}
26432643
}

0 commit comments

Comments
 (0)