marsadm: reject invalidate earlier when no primary is designated

This commit is contained in:
Thomas Schoebel-Theuer 2014-01-14 17:43:56 +01:00
parent 561bf67a55
commit da3652bba9
1 changed files with 2 additions and 0 deletions

View File

@ -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 {