• Marko Mäkelä's avatar
    MDEV-23986: fil_page_type_validate() fails on crash recovery · 05cd5acb
    Marko Mäkelä authored
    In MDEV-12353, we changed the redo log format so that whenever
    any data field is changed, the unchanged prefix of the bytes
    will by default be omitted from the redo log record.
    
    However, in order for the MDEV-23199 logic to work, changes of
    FSP_SPACE_FLAGS must always be written in full (mtr_t::FORCED),
    so that crash recovery can parse them. We must know the flags
    in advance, because we might be applying log to other pages than
    page 0 first.
    
    recv_scan_log_recs(): Correct a misleading message about starting
    crash recovery. Display both the checkpoint LSN and the start
    of the records that end in the FILE_CHECKPOINT marker.
    
    Reviewed by: Thirunarayanan Balathandayuthapani
    05cd5acb
fil0fil.cc 121 KB