summaryrefslogtreecommitdiff
path: root/sql/threadpool_common.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2016-07-19 20:44:02 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2016-07-19 20:44:02 +0000
commitf0386598dd825e3a42c463699988f13c123dd6be (patch)
tree48b85c91ce16e31eb0fd5bbd09ce5507bb0bd15e /sql/threadpool_common.cc
parent9b668d7c8ae9cc2a72e2d968f8a6332db0742cd8 (diff)
downloadmariadb-git-f0386598dd825e3a42c463699988f13c123dd6be.tar.gz
MDEV-10314 : wsrep_client_thread was not set in threadpool.
Fixed threadpool_add_connection to use thd_prepare_connection() to match thread-per-conection flow.
Diffstat (limited to 'sql/threadpool_common.cc')
-rw-r--r--sql/threadpool_common.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc
index 5bcea767aae..ae8a81b1bcd 100644
--- a/sql/threadpool_common.cc
+++ b/sql/threadpool_common.cc
@@ -148,9 +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()