[MDEV-24765] fseg_free_extent fails to call buf_page_free() for the whole segment Created: 2021-02-02  Updated: 2021-02-02  Resolved: 2021-02-02

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.5.5
Fix Version/s: 10.5.9

Type: Bug Priority: Major
Reporter: Thirunarayanan Balathandayuthapani Assignee: Thirunarayanan Balathandayuthapani
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-8139 Fix scrubbing Closed

 Description   

InnoDB fails to clear all the pages present in buffer pool while freeing the extent. It is caused by MDEV-8139

        for (ulint i = 0; i < FSP_EXTENT_SIZE; i++) {
                if (!xdes_is_free(descr, i)) {
                        buf_page_free(
-                         page_id_t(space->id, first_page_in_extent + i),
+                         page_id_t(space->id, first_page_in_extent + 1),
                          mtr, __FILE__, __LINE__);
                }
        }


Generated at Thu Feb 08 09:32:29 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.