mirror of
https://github.com/schoebel/mars
synced 2024-12-13 18:25:46 +00:00
marsadm: fix 'secondary' when not locally primary
This commit is contained in:
parent
4e17138003
commit
2fee916477
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user