1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

work around for compiler bug (5.0.2 build fails on octane2)

server-tools/instance-manager/thread_repository.cc:
  Moved info declaration out of the loops to work around a compiler bug.
This commit is contained in:
unknown
2004-11-19 19:46:16 +03:00
parent 703c498f96
commit 02201d127a

View File

@ -148,10 +148,11 @@ void Thread_repository::deliver_shutdown()
{ {
struct timespec shutdown_time; struct timespec shutdown_time;
set_timespec(shutdown_time, 1); set_timespec(shutdown_time, 1);
Thread_info *info;
pthread_mutex_lock(&LOCK_thread_repository); pthread_mutex_lock(&LOCK_thread_repository);
shutdown_in_progress= true; shutdown_in_progress= true;
for (Thread_info *info= head.next; info != &head; info= info->next) for (info= head.next; info != &head; info= info->next)
{ {
pthread_kill(info->thread_id, THREAD_KICK_OFF_SIGNAL); pthread_kill(info->thread_id, THREAD_KICK_OFF_SIGNAL);
/* /*
@ -173,7 +174,7 @@ void Thread_repository::deliver_shutdown()
so this time everybody should be informed (presumably each worker can so this time everybody should be informed (presumably each worker can
get CPU during shutdown_time.) get CPU during shutdown_time.)
*/ */
for (Thread_info *info= head.next; info != &head; info= info->next) for (info= head.next; info != &head; info= info->next)
{ {
pthread_kill(info->thread_id, THREAD_KICK_OFF_SIGNAL); pthread_kill(info->thread_id, THREAD_KICK_OFF_SIGNAL);
if (info->current_cond) if (info->current_cond)