mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.11 into 11.0
This commit is contained in:
@@ -1828,6 +1828,7 @@ run_scheduler(stats *sptr, statement *stmts, uint concur, ulonglong limit)
|
||||
uint x;
|
||||
struct timeval start_time, end_time;
|
||||
thread_context con;
|
||||
int error;
|
||||
pthread_t mainthread; /* Thread descriptor */
|
||||
pthread_attr_t attr; /* Thread attributes */
|
||||
DBUG_ENTER("run_scheduler");
|
||||
@@ -1836,8 +1837,11 @@ run_scheduler(stats *sptr, statement *stmts, uint concur, ulonglong limit)
|
||||
con.limit= limit;
|
||||
|
||||
pthread_attr_init(&attr);
|
||||
pthread_attr_setdetachstate(&attr,
|
||||
PTHREAD_CREATE_DETACHED);
|
||||
if ((error= pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED)))
|
||||
{
|
||||
printf("Got error: %d from pthread_attr_setdetachstate\n", error);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
pthread_mutex_lock(&counter_mutex);
|
||||
thread_counter= 0;
|
||||
|
Reference in New Issue
Block a user