marsadm: fix 'secondary' when not locally primary

This commit is contained in:
Thomas Schoebel-Theuer 2014-01-27 11:36:07 +01:00
parent 4e17138003
commit 2fee916477

View File

@ -1413,7 +1413,6 @@ sub primary_phase1 {
return if ($force and $cmd eq "primary"); return if ($force and $cmd eq "primary");
my $old = _get_designated_primary($res); my $old = _get_designated_primary($res);
return if ($old eq $host and $cmd eq "primary"); return if ($old eq $host and $cmd eq "primary");
return if ($old ne $host and $cmd eq "secondary");
my $new = "(none)"; my $new = "(none)";
return if $old eq $new; return if $old eq $new;
_primary_res($res, $new, $old); _primary_res($res, $new, $old);