• Daniele Sciascia's avatar
    MW-357 Reset thd->wsrep_apply_toi regardless of applier exiting · 77f5b188
    Daniele Sciascia authored
    Applier does not reset thd->wsrep_apply_toi if applier thread decides
    to exit by setting 'exit= true'. The problem is that galera side may
    decide not to kill the applier thread: for instance if we try to
    SET wsrep_slave_threads = 0; then galera refuses to kill the last
    applier thread. If this happens we are left with a thd which has not
    been reset to the initial state.
    This patch ensures that the thd is reset regardless of the applier
    thread exiting or not.
    77f5b188
wsrep_applier.cc 12.1 KB