• Vladislav Vaintroub's avatar
    mariabackup : Fix race condition when killing query waiting for MDL · 207e5ba3
    Vladislav Vaintroub authored
    Itcan happen that the connection is already gone during the window
    between quering I_S.PROCESSLIST and KILL QUERY.
    
    Fix is to tolerate ER_NO_SUCH_THREAD returned from KILL QUERY.
    
    Add small improvement in message "Killing MDL query " to actually output
    the query.
    Also do not try to kill queries that are already in Killed state.
    207e5ba3
backup_mysql.cc 46.8 KB