mirror of
https://github.com/schoebel/mars
synced 2025-01-18 05:11:35 +00:00
marsadm: avoid repetitions of cache warnings
This commit is contained in:
parent
787881304a
commit
fd1aa83114
@ -755,6 +755,8 @@ sub _write_cache {
|
||||
return $ok;
|
||||
}
|
||||
|
||||
my $cache_warning;
|
||||
|
||||
sub _scan_caches {
|
||||
return if %total_peers;
|
||||
return if _read_cache();
|
||||
@ -937,7 +939,7 @@ sub _scan_caches {
|
||||
"resources\n";
|
||||
}
|
||||
if (!_write_cache()) {
|
||||
lwarn "cannot write peer cache\n";
|
||||
lwarn "cannot write peer cache\n" unless $cache_warning++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user