From e549ec7f6a31d88ccd7236f6a667cbe964c23dc5 Mon Sep 17 00:00:00 2001 From: "msvensson@pilot.mysql.com" <> Date: Mon, 14 Apr 2008 12:57:37 +0200 Subject: [PATCH] Temporary re-enable the "always restart slave" --- mysql-test/mysql-test-run.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 6f0d79e5c06..ebd21090a76 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -3007,6 +3007,17 @@ sub server_need_restart { } } + # Temporary re-enable the "always restart slave" hack + # this should be removed asap, but will require that each rpl + # testcase cleanup better after itself - ie. stop and reset + # replication + # Use the "#!use-slave-opt" marker to detect that this is a "slave" + # server + if ( $server->option("#!use-slave-opt") ){ + mtr_verbose_restart($server, "Always restart slave(s)"); + return 1; + } + my $is_mysqld= grep ($server eq $_, mysqlds()); if ($is_mysqld) {