diff options
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r-- | sql/sql_connect.cc | 3 |
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 */ |