summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2022-09-07 15:28:58 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2022-09-07 15:28:58 +0200
commit80cf7a4c43209a91ac6514ac3ea0dd0b592e17f0 (patch)
tree05d71896fa07dce6ad23ff55b7065af58c29d4ef
parentdd092bc6ebb23a6a93da284bc81175f2e0c54896 (diff)
parent9a8faeea142ea6f575419799c9439f4673971573 (diff)
downloadmariadb-git-80cf7a4c43209a91ac6514ac3ea0dd0b592e17f0.tar.gz
Merge branch '10.4' into 10.5
# Conflicts: # sql/sql_connect.cc
-rw-r--r--sql/sql_connect.cc14
-rw-r--r--sql/threadpool_common.cc8
2 files changed, 6 insertions, 16 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc
index 999830ff67e..57634329392 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 MYSQL_SOCKET unix_sock;
+ DBUG_ASSERT(unix_sock.fd >= 0);
+ while (unix_sock.fd >= 0)
+ 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 MYSQL_SOCKET unix_sock;
- DBUG_ASSERT(unix_sock.fd >= 0);
- while (unix_sock.fd >= 0)
- my_sleep(1000);
- });
-
/*
If a thread was created to handle this connection:
increment slow_launch_threads counter if it took more than
diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc
index 088c97ddb99..c4ab9697f8e 100644
--- a/sql/threadpool_common.cc
+++ b/sql/threadpool_common.cc
@@ -224,14 +224,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.