summaryrefslogtreecommitdiff
path: root/sql/mysqld.cc
diff options
context:
space:
mode:
authorunknown <iggy@recycle.(none)>2007-04-23 14:28:33 -0400
committerunknown <iggy@recycle.(none)>2007-04-23 14:28:33 -0400
commit800d74f208acf0029a8750e64a3dadfecde09fc1 (patch)
treefaafa4372a83d11bc937c6690a0db696f1349283 /sql/mysqld.cc
parent52b86a6e0a9be6f3c41f24b9c30d2b6f885ad94f (diff)
downloadmariadb-git-800d74f208acf0029a8750e64a3dadfecde09fc1.tar.gz
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: Bug#25621 Error in my_thread_global_end(): 1 threads didn't exit - Make sure that connection handlers decrement number of threads and handlers on Windows. - Signal condition variable before unlocking mutex.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r--sql/mysqld.cc3
1 files changed, 2 insertions, 1 deletions
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()