• Marko Mäkelä's avatar
    MDEV-25869 Change buffer entries are lost on InnoDB restart · dfa2d0bc
    Marko Mäkelä authored
    buf_read_ibuf_merge_pages(): If space->size is 0, invoke
    fil_space_get_size() to determine the size of the tablespace
    by reading the header page. Only after that proceed to delete
    any entries that are beyond the end of the tablespace.
    Otherwise, we could be deleting valid entries that actually
    need to be applied.
    
    This fixes a regression that had been introduced in
    commit b80df9eb (MDEV-21069),
    which aimed to avoid crashes during DROP TABLE of corrupted tables.
    dfa2d0bc
buf0rea.cc 25.8 KB