Commit ecad00bc authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

use performance-schema friendly mysql_thread_create() instead of pthread_create()

parent 50e6ae19
......@@ -656,7 +656,8 @@ static int create_worker(thread_group_t *thread_group)
DBUG_RETURN(-1);
}
err= pthread_create(&thread_id, thread_group->pthread_attr, worker_main, thread_group);
err= mysql_thread_create(key_worker_thread, &thread_id,
thread_group->pthread_attr, worker_main, thread_group);
if (!err)
{
thread_group->pending_thread_start_count++;
......
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