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.
This commit is contained in:
Vladislav Vaintroub 2016-07-19 20:44:02 +00:00
parent 9b668d7c8a
commit f0386598dd

View file

@ -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()