From 68c55462ef9f7f14d377c7fd15386e0fced174ec Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Thu, 15 Oct 2009 05:18:52 +0200 Subject: [PATCH] Bug #48047 Can't do normal shutdown Fix a regression that crept in when downporting Windows improvements. Instead of a shutdown thread, another thread that handledsocket connection was created. --- sql/mysqld.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/mysqld.cc b/sql/mysqld.cc index e2d4de4dc56..612aeafce48 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -4112,8 +4112,7 @@ static void create_shutdown_thread() #ifdef __WIN__ hEventShutdown=CreateEvent(0, FALSE, FALSE, shutdown_event_name); pthread_t hThread; - if (pthread_create(&hThread,&connection_attrib, - handle_connections_sockets_thread, 0)) + if (pthread_create(&hThread,&connection_attrib,handle_shutdown,0)) sql_print_warning("Can't create thread to handle shutdown requests"); // On "Stop Service" we have to do regular shutdown