• Nirbhay Choubey's avatar
    MDEV-9290 : InnoDB: Assertion failure in file trx0sys.cc line 353 · 3f515a09
    Nirbhay Choubey authored
    As a fix for MDEV-8208, for initial wsrep threads, the
    invocation of init_for_queries() was moved after plugins
    were initialized. Due to which, OPTION_BEGIN bit of wsrep
    applier THD (originally set in wsrep_replication_process)
    got reset due to implicit commit within init_for_queries().
    As a result, events from a multi-statement transaction from
    another node were committed separately by the applier thread,
    which leads to an assertion as they all carry same seqno.
    
    Fixed by making sure that variable.option_bits are restored
    post init_for_queries(). Also restored server_status.
    Added a test case.
    3f515a09
mysqld.cc 304 KB