From f142723e0e23be26275bdf0921cc3bc2817776d1 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 17 Nov 2006 10:46:21 +0100 Subject: [PATCH] Bug#24354 option "--extern" of mysql-test-run.pl does not work anymore - Dont require restart when using extern and there is no record of master being started(pid is not known) mysql-test/mysql-test-run.pl: Don't require restart when running against extern server and no record of master being started --- mysql-test/mysql-test-run.pl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index f04d252e049..e78b899cd46 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -3868,8 +3868,16 @@ sub run_testcase_need_master_restart($) } elsif( ! $master->[0]->{'pid'} ) { - $do_restart= 1; - mtr_verbose("Restart master: master is not started"); + if ( $opt_extern ) + { + $do_restart= 0; + mtr_verbose("No restart: using extern master"); + } + else + { + $do_restart= 1; + mtr_verbose("Restart master: master is not started"); + } } return $do_restart;