• anozdrin/alik@ibm.'s avatar
    Fix for BUG#28030: test im_instance_conf fails with an assert. · bbb1b64b
    anozdrin/alik@ibm. authored
    The problem was a race condition on shutdown -- when IM got shutdown
    request while a guarded mysqld is starting. In this case the Guardian
    thread tried to stop the mysqld, but might fail if the mysqld hadn't
    created pid-file so far. When this happened, the mysqld-monitor thread
    didn't stop, so the assert in Thread_registry happened.
    
    The fix is to make several attempts to stop mysqld if it is active.
    bbb1b64b
instance.h 5.6 KB