2912
2912
kill_one_thread(Session *, ulong id, bool only_kill_query)
2915
2915
uint32_t error=ER_NO_SUCH_THREAD;
2916
2916
pthread_mutex_lock(&LOCK_thread_count); // For unlink from list
2920
2921
if (tmp->thread_id == id)
2922
2923
pthread_mutex_lock(&tmp->LOCK_delete); // Lock from delete
2926
2928
pthread_mutex_unlock(&LOCK_thread_count);