marsadm: do not report peernames too often

This commit is contained in:
Thomas Schoebel-Theuer 2022-08-16 17:30:22 +02:00 committed by Thomas Schoebel-Theuer
parent 98c559eef7
commit a5efedcf46

View File

@ -6686,6 +6686,7 @@ sub cron_phase2 {
}
my %protected_peers;
my %reported_peername;
sub get_protected_peers {
my $ips_dir = "$mars/ips";
@ -6730,6 +6731,8 @@ sub get_protected_peers {
$path =~ m:/replay-(.*):;
my $peer = $1;
unless ($protected_peers{$peer}) {
next if $reported_peername{$peer};
$reported_peername{$peer} = 1;
lwarn "PLEASE CHECK whether peer '$peer' or resource '$relevant_res' is SOMEHOW misconfigured.\n";
# CHECK: should this be added?
# Some people might forget stray replaylinks in alive resources.