From 4930a27d6c177fabb2e653d7ee56aab2ff1c56ea Mon Sep 17 00:00:00 2001 From: "msvensson@pilot.mysql.com" <> Date: Thu, 13 Dec 2007 11:39:00 +0100 Subject: [PATCH] Only skip restart(and use dynamic binlog switch) if the next test has 'binlog_format_switch' set --- mysql-test/mysql-test-run.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 8e828ad2aed..bb9ee1cfba8 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -2818,16 +2818,15 @@ sub server_need_restart { ! mtr_same_opts($started_opts, $extra_opt) ) { # 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); if (@diff_opts == 2 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 ", $diff_opts[0],"to", $diff_opts[1]); - - die "Binlog format to switch to is not set" - unless defined $tinfo->{binlog_format_switch}; } else {