mirror of
https://github.com/schoebel/mars
synced 2025-01-15 11:30:43 +00:00
marsadm: only ask myself upon self wait-cluster
This commit is contained in:
parent
90947c1b14
commit
1dd31c1285
@ -1804,7 +1804,10 @@ sub get_alive_links {
|
||||
$res = "*" if (!$res || $res eq "all" || $res =~ m/,/);
|
||||
my $use_remote_stamp = $alive =~ s/^\^// ? 1 : 0;
|
||||
my @peer_list;
|
||||
if ($non_participating) {
|
||||
if ($hosts eq $real_host) {
|
||||
# needed at join-cluster when nothing is known about others
|
||||
@peer_list = ($real_host);
|
||||
} elsif ($non_participating) {
|
||||
@peer_list = get_total_peers();
|
||||
} else {
|
||||
@peer_list = get_any_peers($res ne "*" ? $res : undef);
|
||||
@ -1991,7 +1994,7 @@ sub wait_cluster {
|
||||
my $max_restarts = 3;
|
||||
my $max_resets = 1;
|
||||
restart:
|
||||
lprint "Ping $hosts\n";
|
||||
lprint "Ping $hosts trigger=$trigger_code\n";
|
||||
_trigger($trigger_code);
|
||||
my %old_status = get_alive_links($res, "time", $hosts, 0, $non_participating);
|
||||
my $total_count = scalar(keys(%old_status));
|
||||
|
Loading…
Reference in New Issue
Block a user