diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-29 12:53:07 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-29 12:53:07 +0100 |
commit | bee1d88abfd7071a5d8c1a0c593d09cc65b26220 (patch) | |
tree | 816d86bc4741cc1a0ce7b40a442267ebe34caee3 /sql/threadpool_unix.cc | |
parent | b9f2fb84f6f6224290fa8d65286a1862448e93b8 (diff) | |
download | mariadb-git-bee1d88abfd7071a5d8c1a0c593d09cc65b26220.tar.gz |
LP909512: Fix crash on tp_set_threadpool_size if threadpool is not used(thread_handling != pool-of-threads)
Diffstat (limited to 'sql/threadpool_unix.cc')
-rw-r--r-- | sql/threadpool_unix.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/threadpool_unix.cc b/sql/threadpool_unix.cc index c936479a00c..b9cf4c61b7e 100644 --- a/sql/threadpool_unix.cc +++ b/sql/threadpool_unix.cc @@ -1343,6 +1343,9 @@ void tp_end() int tp_set_threadpool_size(uint size) { bool success= true; + if (!started) + return 0; + for(uint i=0; i< size; i++) { thread_group_t *group= &all_groups[i]; |