1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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
This commit is contained in:
Sergey Vojtovich
2019-05-19 02:10:40 +04:00
parent 6900aaf417
commit ebc55c8577
8 changed files with 23 additions and 97 deletions

View File

@ -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
};