summaryrefslogtreecommitdiff
path: root/sql/sql_connect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r--sql/sql_connect.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc
index 18db76e99cb..842e5cdb101 100644
--- a/sql/sql_connect.cc
+++ b/sql/sql_connect.cc
@@ -1108,6 +1108,12 @@ static int check_connection(THD *thd)
void setup_connection_thread_globals(THD *thd)
{
+ DBUG_EXECUTE_IF("CONNECT_wait", {
+ extern Dynamic_array<MYSQL_SOCKET> listen_sockets;
+ DBUG_ASSERT(listen_sockets.size());
+ while (listen_sockets.size())
+ my_sleep(1000);
+ });
thd->store_globals();
}
@@ -1359,14 +1365,6 @@ void do_handle_one_connection(CONNECT *connect, bool put_in_cache)
return;
}
- DBUG_EXECUTE_IF("CONNECT_wait",
- {
- extern Dynamic_array<MYSQL_SOCKET> listen_sockets;
- DBUG_ASSERT(listen_sockets.size());
- while (listen_sockets.size())
- my_sleep(1000);
- });
-
/*
If a thread was created to handle this connection:
increment slow_launch_threads counter if it took more than