From 30d6cf311a3f07f0655679291360fdf99af32bca Mon Sep 17 00:00:00 2001 From: "iggy@recycle.(none)" <> Date: Mon, 23 Apr 2007 14:28:33 -0400 Subject: Bug#25621 Error in my_thread_global_end(): 1 threads didn't exit - On Windows, connection handlers while exiting properly did not decrement the server's thread count. --- sql/mysqld.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sql') diff --git a/sql/mysqld.cc b/sql/mysqld.cc index b0fc5a30ff5..97f03e3efc2 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -3400,8 +3400,9 @@ void decrement_handler_count() { pthread_mutex_lock(&LOCK_thread_count); handler_count--; - pthread_mutex_unlock(&LOCK_thread_count); pthread_cond_signal(&COND_handler_count); + pthread_mutex_unlock(&LOCK_thread_count); + my_thread_end(); } #else #define decrement_handler_count() -- cgit v1.2.1