marsadm: safeguard missing replaylink

This commit is contained in:
Thomas Schoebel-Theuer 2020-05-03 16:08:42 +02:00 committed by Thomas Schoebel-Theuer
parent c0154f2e06
commit eebb5098d4
1 changed files with 1 additions and 0 deletions

View File

@ -2553,6 +2553,7 @@ sub log_purge_res {
my $peer = $2;
my $replay = "$basedir/replay-$peer";
my $target = get_link($replay, 1);
next unless $target;
lprint "found replay link '$replay' -> '$target'\n";
$target =~ s/,.*//;
$start_logs{$target}++;