• Marko Mäkelä's avatar
    MDEV-30422 Merge new release of InnoDB 5.7.41 to 10.3 · 489b5569
    Marko Mäkelä authored
    MySQL 5.7.41 includes one InnoDB change
    mysql/mysql-server@d2d6b2dd00f709bc528386009150d4bc726e25a0
    that seems to be applicable to MariaDB Server 10.3 and 10.4.
    Even though commit 5b9ee8d8
    seems to have fixed sporadic failures on our CI systems, it is
    theoretically possible that another race condition remained.
    
    buf_flush_page_cleaner_coordinator(): In the final loop,
    wait also for buf_get_n_pending_read_ios() to reach 0.
    In this way, if a secondary index leaf page was read into the
    buffer pool and ibuf_merge_or_delete_for_page() modified that
    page or some change buffer pages, the flush loop would execute
    until the buffer pool really is in a clean state.
    
    This potential data corruption bug does not affect MariaDB Server 10.5
    or later, thanks to commit b42294bc
    which removed change buffer merges that are not explicitly requested.
    489b5569
buf0flu.cc 104 KB