• Marko Mäkelä's avatar
    Backport MDEV-13890 from 10.2 (InnoDB/XtraDB shutdown failure) · d11001d1
    Marko Mäkelä authored
    If InnoDB or XtraDB recovered committed transactions at server
    startup, but the processing of recovered transactions was
    prevented by innodb_read_only or by innodb_force_recovery,
    an assertion would fail at shutdown.
    
    This bug was originally reproduced when Mariabackup executed
    InnoDB shutdown after preparing (applying redo log into) a backup.
    
    trx_free_prepared(): Allow TRX_STATE_COMMITTED_IN_MEMORY.
    
    trx_undo_free_prepared(): Allow any undo log state. For transactions
    that were resurrected in TRX_STATE_COMMITTED_IN_MEMORY
    the undo log state would have been reset by trx_undo_set_state_at_finish().
    d11001d1
trx0undo.cc 55.6 KB