Commit e6c0f25f authored by Nirbhay Choubey's avatar Nirbhay Choubey

Merge branch '5.5-galera' into 10.0-galera

parents fe4047dc 70113ee1
......@@ -5134,18 +5134,18 @@ static int init_server_components()
if (tmp->wsrep_applier == true)
{
/*
Set THR_THD to temporally point to this THD to register all the
variables that allocates memory for this THD.
Save/restore server_status and variables.option_bits and they get
altered during init_for_queries().
*/
THD *current_thd_saved= current_thd;
set_current_thd(tmp);
unsigned int server_status_saved= tmp->server_status;
ulonglong option_bits_saved= tmp->variables.option_bits;
/*
Also save/restore server_status and variables.option_bits and they
get altered during init_for_queries().
Set THR_THD to temporarily point to this THD to register all the
variables that allocates memory for this THD.
*/
unsigned int server_status_saved= tmp->server_status;
ulonglong option_bits_saved= tmp->variables.option_bits;
THD *current_thd_saved= current_thd;
set_current_thd(tmp);
tmp->init_for_queries();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment