marsadm: safeguard wait-cluster against illegal timestamps

This commit is contained in:
Thomas Schoebel-Theuer 2020-07-31 18:27:23 +02:00
parent 58359ff381
commit 08ee99d304
1 changed files with 4 additions and 0 deletions

View File

@ -1846,6 +1846,10 @@ sub wait_cluster {
lwarn "Need restart for getting more 'time' links\n";
goto restart if $max_restarts-- > 0;
}
if ($status{$peer} !~ m/^[0-9.]+$/) {
$dead_count++;
next;
}
if ($status{$peer} > $old_status{$peer} &&
$status{$peer} > $start_time &&
$progress{$peer}-- <= 0) {