Commit d4695de3 authored by unknown's avatar unknown

Merge mysql.com:/home/jimw/my/mysql-4.1-11796

into  mysql.com:/home/jimw/my/mysql-4.1-clean


sql/mysqld.cc:
  Auto merged
parents b0872f4e f64a4835
...@@ -649,7 +649,6 @@ static void close_connections(void) ...@@ -649,7 +649,6 @@ static void close_connections(void)
} }
#endif #endif
end_thr_alarm(0); // Abort old alarms. end_thr_alarm(0); // Abort old alarms.
end_slave();
/* /*
First signal all threads that it's time to die First signal all threads that it's time to die
...@@ -665,6 +664,9 @@ static void close_connections(void) ...@@ -665,6 +664,9 @@ static void close_connections(void)
{ {
DBUG_PRINT("quit",("Informing thread %ld that it's time to die", DBUG_PRINT("quit",("Informing thread %ld that it's time to die",
tmp->thread_id)); tmp->thread_id));
/* We skip slave threads on this first loop through. */
if (tmp->slave_thread) continue;
tmp->killed= 1; tmp->killed= 1;
if (tmp->mysys_var) if (tmp->mysys_var)
{ {
...@@ -681,6 +683,8 @@ static void close_connections(void) ...@@ -681,6 +683,8 @@ static void close_connections(void)
} }
(void) pthread_mutex_unlock(&LOCK_thread_count); // For unlink from list (void) pthread_mutex_unlock(&LOCK_thread_count); // For unlink from list
end_slave();
if (thread_count) if (thread_count)
sleep(2); // Give threads time to die sleep(2); // Give threads time to die
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment