• Marko Mäkelä's avatar
    MDEV-11369/MDEV-12288: Reset DB_TRX_ID on the metadata record · 5b63a660
    Marko Mäkelä authored
    On the hidden metadata record, if instant ALTER TABLE was executed
    multiple times on the same table, purge could fail to reset the
    DB_TRX_ID,DB_ROLL_PTR on the updated metadata record. This is
    only a cosmetic failure that was caught (and separately fixed)
    in 10.4 during the MDEV-15562 development. The problem was that
    occasionally, innodb.instant_alter_crash would fail with a
    result difference due to the DB_TRX_ID,DB_ROLL_PTR not having
    been reset on the metadata record.
    
    This bug should have no noticeable impact, because the metadata
    record is invisible to the SQL layer, and never subjected to
    MVCC or locking.
    
    I was unable to repeat the problem on 10.3.
    
    row_purge_parse_undo_rec(): Set node->ref for the metadata record.
    5b63a660
row0purge.cc 37.6 KB