mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
threadpool: release mutex on io_poll_create failure
Also use the group pointer previously allocated.
This commit is contained in:
parent
67d89e4d7d
commit
b56f9fbe2f
1 changed files with 1 additions and 2 deletions
|
|
@ -1698,10 +1698,9 @@ int TP_pool_generic::set_pool_size(uint size)
|
|||
if(!success)
|
||||
{
|
||||
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)
|
||||
{
|
||||
group_count= i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue