mirror of
https://github.com/MariaDB/server.git
synced 2026-05-02 05:05:33 +02:00
Small adjustements to threadpool
This commit is contained in:
parent
468104567f
commit
a5a22e9f64
9 changed files with 14 additions and 13 deletions
|
|
@ -17,13 +17,11 @@ extern void thd_cleanup(THD *thd);
|
|||
extern void delete_thd(THD *thd);
|
||||
|
||||
/* Threadpool parameters */
|
||||
#ifdef _WIN32
|
||||
|
||||
uint threadpool_min_threads;
|
||||
#else
|
||||
uint threadpool_idle_timeout;
|
||||
uint threadpool_size;
|
||||
uint threadpool_stall_limit;
|
||||
#endif
|
||||
uint threadpool_max_threads;
|
||||
|
||||
|
||||
|
|
@ -127,7 +125,7 @@ int threadpool_add_connection(THD *thd)
|
|||
thd->net.reading_or_writing= 1;
|
||||
}
|
||||
}
|
||||
|
||||
thd->skip_wait_timeout= true;
|
||||
thread_detach(thd, psi_thread);
|
||||
return retval;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue