• Teemu Ollakka's avatar
    MDEV-15740 Backport wsrep recovery fixes from 10.4. · 040b840d
    Teemu Ollakka authored
    Clear wsrep XID in innobase_rollback_by_xid() for recovered wsrep
    transaction in order to avoid resetting XID storage when rolling back
    wsrep transaction during recovery.
    
    Sort wsrep XIDs read from storage engine in ascending order and
    erify that the range is continuous during crash recovery. If binlog is off,
    commit all recovered transactions for continuous seqno range. This is safe
    because all transactions with wsrep XID have been certified and must be
    committed in the cluster. On the other hand if binlog is on, respect binlog
    as a transaction coordinator in order to avoid missing transactions in binlog
    that have been committed into storage engine .
    040b840d
ha_innodb.cc 636 KB