mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 21:42:35 +01:00
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
This commit is contained in:
commit
e7f31ffefc
1 changed files with 2 additions and 2 deletions
|
@ -2951,8 +2951,6 @@ static void create_new_thread(THD *thd)
|
||||||
DBUG_VOID_RETURN;
|
DBUG_VOID_RETURN;
|
||||||
}
|
}
|
||||||
pthread_mutex_lock(&LOCK_thread_count);
|
pthread_mutex_lock(&LOCK_thread_count);
|
||||||
if (thread_count-delayed_insert_threads > max_used_connections)
|
|
||||||
max_used_connections=thread_count-delayed_insert_threads;
|
|
||||||
thd->thread_id=thread_id++;
|
thd->thread_id=thread_id++;
|
||||||
|
|
||||||
thd->real_id=pthread_self(); // Keep purify happy
|
thd->real_id=pthread_self(); // Keep purify happy
|
||||||
|
@ -2981,6 +2979,8 @@ static void create_new_thread(THD *thd)
|
||||||
thread_count++;
|
thread_count++;
|
||||||
thread_created++;
|
thread_created++;
|
||||||
threads.append(thd);
|
threads.append(thd);
|
||||||
|
if (thread_count-delayed_insert_threads > max_used_connections)
|
||||||
|
max_used_connections=thread_count-delayed_insert_threads;
|
||||||
DBUG_PRINT("info",(("creating thread %d"), thd->thread_id));
|
DBUG_PRINT("info",(("creating thread %d"), thd->thread_id));
|
||||||
thd->connect_time = time(NULL);
|
thd->connect_time = time(NULL);
|
||||||
if ((error=pthread_create(&thd->real_id,&connection_attrib,
|
if ((error=pthread_create(&thd->real_id,&connection_attrib,
|
||||||
|
|
Loading…
Reference in a new issue