marsadm: safeguard byzantine forced logrotate races

This commit is contained in:
Thomas Schoebel-Theuer 2022-03-24 04:03:48 +01:00
parent 5421f04b18
commit 7fcdf254e9

View File

@ -5941,6 +5941,7 @@ sub logrotate_res {
set_link($marsadm_version, "$mars/actual-$host/marsadm-version");
if ($force) {
lwarn "operation $cmd --force is DANGEROUS\n";
sleep(3);
} else {
my $no_warn = ($cmd =~ /cron/);
my $done = check_primary($cmd, $res, 0, 1, $no_warn);