• Julius Goryavsky's avatar
    MDEV-26914: Unreleased mutex in the exec_relay_log_event() function · 7948a1dc
    Julius Goryavsky authored
    In the replication-related code, in the exec_relay_log_event() (slave.cc)
    function, where the "data_lock" mutex is captured, this mutex is then not
    released on one of the early return branches within a specific insert for
    WSREP, namely under the branch: "if (wsrep_before_statement(thd))". As a
    result, the mutex remains captured, resulting in errors or hangs.
    
    This commit fixes this issue, which is now showing up as intermittent
    failures in mtr tests for galera and galera_sr suites.
    7948a1dc
slave.cc 279 KB