• guilhem@mysql.com's avatar
    Fix for BUG#2921 "Replication problem on mutex lock in mySQL-4.0.18": · cf287341
    guilhem@mysql.com authored
    re-using unused LOCK_active_mi to serialize all administrative
    commands related to replication:
    START SLAVE, STOP SLAVE, RESET SLAVE, CHANGE MASTER, init_slave()
    (replication autostart at server startup), end_slave() (replication
    autostop at server shutdown), LOAD DATA FROM MASTER.
    This protects us against a handful of deadlocks (like BUG#2921
    when two START SLAVE, but when two STOP SLAVE too).
    Removing unused variables.
    cf287341
repl_failsafe.cc 24.6 KB