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
1 changed files with 0 additions and 1 deletions

View File

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