summaryrefslogtreecommitdiff
path: root/sql/sql_connect.cc
diff options
context:
space:
mode:
authorSergey Vojtovich <svoj@mariadb.org>2020-05-01 20:32:33 +0400
committerSergey Vojtovich <svoj@mariadb.org>2020-05-06 13:50:35 +0400
commit91734431bac4384c07beda60e0cb374c7720e5c6 (patch)
tree40227c456efcb0723b184127a0a06ac4f69efc3c /sql/sql_connect.cc
parent8ad3c6154b90314980faf1cdd4c317c9bbf5f84c (diff)
downloadmariadb-git-91734431bac4384c07beda60e0cb374c7720e5c6.tar.gz
Move all thread cache specific code to a new class
Part of MDEV-18353 - Shutdown may miss to wait for connection thread
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r--sql/sql_connect.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc
index dbe66650476..420a054a1b2 100644
--- a/sql/sql_connect.cc
+++ b/sql/sql_connect.cc
@@ -28,6 +28,7 @@
#endif
#include "sql_audit.h"
#include "sql_connect.h"
+#include "thread_cache.h"
#include "probes_mysql.h"
#include "sql_parse.h" // sql_command_flags,
// execute_init_command,
@@ -1420,7 +1421,7 @@ end_thread:
unlink_thd(thd);
if (IF_WSREP(thd->wsrep_applier, false) || !put_in_cache ||
- !(connect= cache_thread(thd)))
+ !(connect= thread_cache.park()))
break;
/* Create new instrumentation for the new THD job */