marsadm: prevent retrieval of illformed alivelinks

This commit is contained in:
Thomas Schoebel-Theuer 2022-01-19 06:39:07 +01:00
parent 65b39d5f16
commit 91d0b3fd35

View File

@ -2459,6 +2459,7 @@ sub get_alive_links {
my %peers;
foreach my $peer (@peer_list) {
next if ($peer eq $host && $hosts ne $host);
next if $peer =~ $match_reserved_id;
# After join-cluster & co, links may take a while to appear
$peers{$peer} = 1 if $non_participating;
# peer must be a candiate matching the hosts spec