diff options
author | unknown <petr@mysql.com> | 2004-11-19 19:46:16 +0300 |
---|---|---|
committer | unknown <petr@mysql.com> | 2004-11-19 19:46:16 +0300 |
commit | 02201d127a7d19e11025e037c495c1b6eaf8670a (patch) | |
tree | 7213d4b559b9e434b3f287d895bd9c26da12f264 | |
parent | 703c498f96e64979486a804f9e661f97add4480f (diff) | |
download | mariadb-git-02201d127a7d19e11025e037c495c1b6eaf8670a.tar.gz |
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.
-rw-r--r-- | server-tools/instance-manager/thread_repository.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server-tools/instance-manager/thread_repository.cc b/server-tools/instance-manager/thread_repository.cc index 0a46f61c831..d0b302d29fb 100644 --- a/server-tools/instance-manager/thread_repository.cc +++ b/server-tools/instance-manager/thread_repository.cc @@ -148,10 +148,11 @@ void Thread_repository::deliver_shutdown() { struct timespec shutdown_time; set_timespec(shutdown_time, 1); + Thread_info *info; pthread_mutex_lock(&LOCK_thread_repository); 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); /* @@ -173,7 +174,7 @@ void Thread_repository::deliver_shutdown() so this time everybody should be informed (presumably each worker can 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); if (info->current_cond) |