Only skip restart(and use dynamic binlog switch) if the next test has 'binlog_format_switch' set

parent 864989d9
...@@ -2818,16 +2818,15 @@ sub server_need_restart { ...@@ -2818,16 +2818,15 @@ sub server_need_restart {
! mtr_same_opts($started_opts, $extra_opt) ) ! mtr_same_opts($started_opts, $extra_opt) )
{ {
# Check if diff is binlog format only # Check if diff is binlog format only
# and the next test has $binlog_format_switch set
my @diff_opts= mtr_diff_opts($started_opts, $extra_opt); my @diff_opts= mtr_diff_opts($started_opts, $extra_opt);
if (@diff_opts == 2 and if (@diff_opts == 2 and
$diff_opts[0] =~/^--binlog-format=/ and $diff_opts[0] =~/^--binlog-format=/ and
$diff_opts[1] =~/^--binlog-format=/) $diff_opts[1] =~/^--binlog-format=/ and
defined $tinfo->{binlog_format_switch})
{ {
mtr_verbose("Using dynamic switch of binlog format from ", mtr_verbose("Using dynamic switch of binlog format from ",
$diff_opts[0],"to", $diff_opts[1]); $diff_opts[0],"to", $diff_opts[1]);
die "Binlog format to switch to is not set"
unless defined $tinfo->{binlog_format_switch};
} }
else else
{ {
......
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