diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2012-08-28 16:13:03 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2012-08-28 16:13:03 +0200 |
commit | e5884b2dbd658e233efb4f28b3fcc704f3b29ea7 (patch) | |
tree | 5f6f1c9eddb6fc5b679f5632628837b0deb91b0b /sql/mysqld.cc | |
parent | c65ebd795e8a1b05cd63784a8e305318f2af59f8 (diff) | |
download | mariadb-git-e5884b2dbd658e233efb4f28b3fcc704f3b29ea7.tar.gz |
Bug#14549809 LINKING PROBLEM IN 5.5.28 BUILDS WITH THREADPOOL PLUGIN
The use of Thread_iterator did not work on windows (linking problems).
Solution: Change the interface between the thread_pool and the server
to only use simple free functions.
This patch is for 5.5 only (mimicks similar solution in 5.6)
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index d391918c42c..cfc74804f4e 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -601,6 +601,21 @@ I_List<THD> threads; Rpl_filter* rpl_filter; Rpl_filter* binlog_filter; +THD *first_global_thread() +{ + if (threads.is_empty()) + return NULL; + return threads.head(); +} + +THD *next_global_thread(THD *thd) +{ + if (threads.is_last(thd)) + return NULL; + struct ilink *next= thd->next; + return static_cast<THD*>(next); +} + struct system_variables global_system_variables; struct system_variables max_system_variables; struct system_status_var global_status_var; |