mirror of
https://github.com/schoebel/mars
synced 2024-12-21 22:30:08 +00:00
marsadm: safeguard byzantine forced logrotate races
This commit is contained in:
parent
5421f04b18
commit
7fcdf254e9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user