mirror of
https://github.com/schoebel/mars
synced 2024-12-28 09:32:25 +00:00
marsadm: better leave-cluster cleanup of dead files
This commit is contained in:
parent
fb880f9b2c
commit
5f485b6a02
@ -1468,6 +1468,12 @@ sub leave_cluster {
|
||||
sleep_timeout(3, 1);
|
||||
}
|
||||
system("rmmod mars") if $host eq $real_host;
|
||||
foreach my $path (glob("$mars/{,resource-*/}{todo,actual}-*/*-$host")) {
|
||||
unlink($path);
|
||||
}
|
||||
foreach my $path (glob("$mars/{,resource-*/}{todo,actual}-$host")) {
|
||||
rmdir($path); # at least try it
|
||||
}
|
||||
}
|
||||
|
||||
sub create_res {
|
||||
|
Loading…
Reference in New Issue
Block a user