• thek@adventure.(none)'s avatar
    Bug #32436 KILL QUERY completely deadlocks mysqld · 95bfde3d
    thek@adventure.(none) authored
    Sending several "KILL QUERY" statements to target a connection running
    "SELECT SLEEP" could freeze the server.
    
    The locking order in Item_func_sleep was wrong and this could lead to a
    dead lock.
    
    This patch solves the issue by resolving the locking order properly.
    95bfde3d
item_func.cc 137 KB