diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2019-05-19 02:10:40 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2019-05-21 17:55:09 +0400 |
commit | ebc55c8577be7b8b8c3d9433feb4ce457f5b6cc5 (patch) | |
tree | aa39a653cebe6509fdd00d21dc16098469d6d102 /sql/threadpool_common.cc | |
parent | 6900aaf417c6540a22ab74c6badaf42cd37e43e1 (diff) | |
download | mariadb-git-ebc55c8577be7b8b8c3d9433feb4ce457f5b6cc5.tar.gz |
Simplified away scheduler_functions::end_thread()
Code properly integrated into callers instead.
do_handle_one_connection(): no need to reset thd and thd->thread_stack
as they're not updated by cache_thread().
Part of MDEV-19515 - Improve connect speed
Diffstat (limited to 'sql/threadpool_common.cc')
-rw-r--r-- | sql/threadpool_common.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc index 042814a8321..66f7a94d528 100644 --- a/sql/threadpool_common.cc +++ b/sql/threadpool_common.cc @@ -380,14 +380,6 @@ end: } - -/* Dummy functions, do nothing */ - -static bool tp_end_thread(THD *, bool) -{ - return 0; -} - static TP_pool *pool; static bool tp_init() @@ -511,7 +503,6 @@ static scheduler_functions tp_scheduler_functions= tp_wait_begin, // thd_wait_begin tp_wait_end, // thd_wait_end tp_post_kill_notification, // post kill notification - tp_end_thread, // Dummy function tp_end // end }; |