• Marko Mäkelä's avatar
    MDEV-26007 Rollback unnecessarily initiates redo log write · 033e29b6
    Marko Mäkelä authored
    trx_t::commit_in_memory(): Do not initiate a redo log write if
    the transaction has no visible effect. If anything for this
    transaction had been made durable, crash recovery will roll back
    the transaction just fine even if the end of ROLLBACK is not
    durably written.
    
    Rollbacks of transactions that are associated with XA identifiers
    (possibly internally via the binlog) will always be persisted.
    The test rpl.rpl_gtid_crash covers this.
    033e29b6
read_only_recover_committed.result 1.81 KB