• Jan Lindström's avatar
    MDEV-24954 : 10.5.9 crashes on int wsrep::client_state::ordered_commit():... · 161f4036
    Jan Lindström authored
    MDEV-24954 : 10.5.9 crashes on int wsrep::client_state::ordered_commit(): Assertion `owning_thread_id_ == wsrep::this_thread::get_id()' failed.
    
    Binlog group commit could lead to a situation where group commit leader
    accesses participant thd's wsrep client state concurrently with the
    thread executing the participant thd.
    
    This is because of race condition in
    MYSQL_BIN_LOG::write_transaction_to_binlog_events(),
    and was fixed by moving wsrep_ordered_commit() to happen in
    MYSQL_BIN_LOG::queue_for_group_commit() under protection of
    LOCK_prepare_ordered mutex.
    161f4036
log.cc 325 KB