1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

LP909512: Fix crash on tp_set_threadpool_size if threadpool is not used(thread_handling != pool-of-threads)

This commit is contained in:
Vladislav Vaintroub
2011-12-29 12:53:07 +01:00
parent b9f2fb84f6
commit bee1d88abf

View File

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