Commit b56f9fbe authored by Daniel Black's avatar Daniel Black Committed by Vladislav Vaintroub

threadpool: release mutex on io_poll_create failure

Also use the group pointer previously allocated.
parent 67d89e4d
...@@ -1698,10 +1698,9 @@ int TP_pool_generic::set_pool_size(uint size) ...@@ -1698,10 +1698,9 @@ int TP_pool_generic::set_pool_size(uint size)
if(!success) if(!success)
{ {
sql_print_error("io_poll_create() failed, errno=%d\n", errno); sql_print_error("io_poll_create() failed, errno=%d\n", errno);
break;
} }
} }
mysql_mutex_unlock(&all_groups[i].mutex); mysql_mutex_unlock(&group->mutex);
if (!success) if (!success)
{ {
group_count= i; group_count= i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment