Created
July 19, 2016 21:11
-
-
Save nirbhayc/f1707905b64f6fd5cfb716ec4e1b4ca6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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