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];