diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2019-05-19 01:04:22 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2019-05-21 17:55:09 +0400 |
commit | 6900aaf417c6540a22ab74c6badaf42cd37e43e1 (patch) | |
tree | bea97b94460d55d507180c42535cc658b6d7400a /sql/scheduler.h | |
parent | 8d9d4aa6d6db96d09006ea268cf9c29f46c9f132 (diff) | |
download | mariadb-git-6900aaf417c6540a22ab74c6badaf42cd37e43e1.tar.gz |
Simplified away init_new_connection_thread()
It was meaningful only for one-thread-per-connection scheduler anyway,
so call init_new_connection_handler_thread() directly from
handle_one_connection().
It was somewhat harmful for no-threads scheduler, because it'd attempt to
detach main thread on AIX_3_2 and Siemens unix (and DEC OSF/1 3.2 too).
Also it does duplicate my_thread_init() call, which may produce a warning
under EXTRA_DEBUG_THREADS.
start_wsrep_THD() shouldn't have called it at all: it already detached
and called my_thread_init().
Part of MDEV-19515 - Improve connect speed
Diffstat (limited to 'sql/scheduler.h')
-rw-r--r-- | sql/scheduler.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/scheduler.h b/sql/scheduler.h index b067763d9b4..12d54f74c4e 100644 --- a/sql/scheduler.h +++ b/sql/scheduler.h @@ -34,7 +34,6 @@ struct scheduler_functions uint max_threads, *connection_count; ulong *max_connections; bool (*init)(void); - bool (*init_new_connection_thread)(void); void (*add_connection)(CONNECT *connect); void (*thd_wait_begin)(THD *thd, int wait_type); void (*thd_wait_end)(THD *thd); |