Skip to content

Commit

Permalink
MDEV-10944: GALERA log-slave-updates FAIL after upgrading from 10.1.1…
Browse files Browse the repository at this point in the history
…7 to 10.1.18

thd->variables.option_bits need to be restored after
plugin_thdvar_init() during post initialization of
wsrep threads.
  • Loading branch information
Nirbhay Choubey committed Nov 2, 2016
1 parent fa4fa0a commit 6dbfe7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sql/sql_plugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4271,7 +4271,13 @@ void wsrep_plugins_post_init()
{
if (IF_WSREP(thd->wsrep_applier,1))
{
// Save options_bits as it will get overwritten in plugin_thdvar_init()
ulonglong option_bits_saved= thd->variables.option_bits;

plugin_thdvar_init(thd);

// Restore option_bits
thd->variables.option_bits= option_bits_saved;
}
}

Expand Down

0 comments on commit 6dbfe7f

Please sign in to comment.