mirror of https://github.com/schoebel/mars
marsadm: automatically delete deprecated conncetion messages
This commit is contained in:
parent
cb8806d060
commit
3a87569bbe
|
@ -2450,6 +2450,11 @@ sub logdelete_res {
|
|||
unlink($leftlink);
|
||||
}
|
||||
foreach my $leftlink (glob("$mars/{,resource-$res/}actual-*/msg-*")) {
|
||||
if ($leftlink =~ m:/msg-conncetion-from-:) {
|
||||
lprint " unlink deprecated '$leftlink'\n" if $verbose;
|
||||
unlink($leftlink);
|
||||
next;
|
||||
}
|
||||
my $stamp = get_link_stamp($leftlink);
|
||||
next unless $stamp + 3600 * 4 < $start_time;
|
||||
lprint " unlink '$leftlink'\n" if $verbose;
|
||||
|
|
Loading…
Reference in New Issue