diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2022-09-07 13:49:49 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2022-09-07 13:49:49 +0200 |
commit | 9a8faeea142ea6f575419799c9439f4673971573 (patch) | |
tree | 6de23bf540987b39f62f0d07f6302d389a7ddffa /sql/threadpool_common.cc | |
parent | c7ba2377936be2a3c84080359d87f7486ce682a0 (diff) | |
download | mariadb-git-9a8faeea142ea6f575419799c9439f4673971573.tar.gz |
MDEV-18353 - minor cleanup
Do not repeat yourself.
Instead of having the same DBUG_EXECUTE_IF code in threadpool and
thread-per-connection, add this code to setup_connection_thread_globals()
which is executed in all scheduling modes.
Diffstat (limited to 'sql/threadpool_common.cc')
-rw-r--r-- | sql/threadpool_common.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc index 4195bf21e48..38848f3c237 100644 --- a/sql/threadpool_common.cc +++ b/sql/threadpool_common.cc @@ -222,14 +222,6 @@ static THD* threadpool_add_connection(CONNECT *connect, void *scheduler_data) { THD *thd= NULL; - DBUG_EXECUTE_IF("CONNECT_wait", - { - extern MYSQL_SOCKET unix_sock; - DBUG_ASSERT(unix_sock.fd >= 0); - while (unix_sock.fd >= 0) - my_sleep(1000); - }); - /* Create a new connection context: mysys_thread_var and PSI thread Store them in THD. |