Skip to content

Commit

Permalink
MDEV-10314 : wsrep_client_thread was not set in threadpool.
Browse files Browse the repository at this point in the history
Fixed threadpool_add_connection to use thd_prepare_connection()
to match thread-per-conection flow.
  • Loading branch information
vaintroub authored and Nirbhay Choubey committed Aug 10, 2016
1 parent abfbe80 commit d40d3f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sql/threadpool_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d40d3f4

Please sign in to comment.