mirror of https://github.com/schoebel/mars
marsadm: reject invalidate earlier when no primary is designated
This commit is contained in:
parent
561bf67a55
commit
da3652bba9
|
@ -1406,6 +1406,8 @@ sub cleanup_res {
|
|||
sub invalidate_res_phase0 {
|
||||
my ($cmd, $res) = @_;
|
||||
check_not_primary(@_);
|
||||
my $primary = _get_designated_primary($res);
|
||||
ldie "for operation '$cmd', some other designated primary must exist (currently there is none)\n" if $primary eq "(none)";
|
||||
}
|
||||
|
||||
sub invalidate_res_phase1 {
|
||||
|
|
Loading…
Reference in New Issue