mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Creation of mysql-trunk = {summit + "Innodb plugin replacing the builtin"}:
bzr branch mysql-5.1-performance-version mysql-trunk # Summit cd mysql-trunk bzr merge mysql-5.1-innodb_plugin # which is 5.1 + Innodb plugin bzr rm innobase # remove the builtin Next step: build, test fixes.
This commit is contained in:
@@ -1075,8 +1075,8 @@ static void prepare_new_connection_state(THD* thd)
|
||||
pthread_handler_t handle_one_connection(void *arg)
|
||||
{
|
||||
THD *thd= (THD*) arg;
|
||||
ulong launch_time= (ulong) ((thd->thr_create_utime= my_micro_time()) -
|
||||
thd->connect_utime);
|
||||
|
||||
thd->thr_create_utime= my_micro_time();
|
||||
|
||||
if (thread_scheduler.init_new_connection_thread())
|
||||
{
|
||||
@@ -1085,8 +1085,20 @@ pthread_handler_t handle_one_connection(void *arg)
|
||||
thread_scheduler.end_thread(thd,0);
|
||||
return 0;
|
||||
}
|
||||
if (launch_time >= slow_launch_time*1000000L)
|
||||
statistic_increment(slow_launch_threads,&LOCK_status);
|
||||
|
||||
/*
|
||||
If a thread was created to handle this connection:
|
||||
increment slow_launch_threads counter if it took more than
|
||||
slow_launch_time seconds to create the thread.
|
||||
*/
|
||||
if (thd->prior_thr_create_utime)
|
||||
{
|
||||
ulong launch_time= (ulong) (thd->thr_create_utime -
|
||||
thd->prior_thr_create_utime);
|
||||
if (launch_time >= slow_launch_time*1000000L)
|
||||
statistic_increment(slow_launch_threads, &LOCK_status);
|
||||
thd->prior_thr_create_utime= 0;
|
||||
}
|
||||
|
||||
/*
|
||||
handle_one_connection() is normally the only way a thread would
|
||||
|
Reference in New Issue
Block a user