Skip to content

Instantly share code, notes, and snippets.

@nirbhayc
Created July 19, 2016 21:11
Show Gist options
  • Save nirbhayc/f1707905b64f6fd5cfb716ec4e1b4ca6 to your computer and use it in GitHub Desktop.
Save nirbhayc/f1707905b64f6fd5cfb716ec4e1b4ca6 to your computer and use it in GitHub Desktop.
diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc
index 5bcea76..678ac87 100644
--- a/sql/threadpool_common.cc
+++ b/sql/threadpool_common.cc
@@ -148,10 +148,8 @@ int threadpool_add_connection(THD *thd)
if (!setup_connection_thread_globals(thd))
{
- if (!login_connection(thd))
+ if (!thd_prepare_connection(thd))
{
- prepare_new_connection_state(thd);
-
/*
Check if THD is ok, as prepare_new_connection_state()
can fail, for example if init command failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment