marsadm: purge historic links

This commit is contained in:
Thomas Schoebel-Theuer 2020-08-01 09:52:10 +02:00
parent a6167603ad
commit 58a5537d0a
1 changed files with 2 additions and 1 deletions

View File

@ -4210,7 +4210,8 @@ sub link_purge_res {
unlink($leftlink);
}
foreach my $leftlink (lamport_glob("$mars/{,resource-$res/}actual-*/msg-*")) {
if ($leftlink =~ m:/msg-conncetion-from-:) {
# cleanup historic msg-*
if ($leftlink =~ m:/msg-(conncetion-from-|additional-connection-):) {
lprint " unlink deprecated '$leftlink'\n" if $verbose;
unlink($leftlink);
next;