mirror of https://github.com/schoebel/mars
marsadm: leave-cluster should rmmod only on real host
This commit is contained in:
parent
c6fc05a3be
commit
fb880f9b2c
|
@ -1467,7 +1467,7 @@ sub leave_cluster {
|
|||
while (-f "$mars/ips/ip-$host" && $timeout >= 0) {
|
||||
sleep_timeout(3, 1);
|
||||
}
|
||||
system("rmmod mars");
|
||||
system("rmmod mars") if $host eq $real_host;
|
||||
}
|
||||
|
||||
sub create_res {
|
||||
|
|
Loading…
Reference in New Issue