marsadm: leave-cluster should rmmod only on real host

This commit is contained in:
Thomas Schoebel-Theuer 2015-04-29 08:37:10 +02:00
parent c6fc05a3be
commit fb880f9b2c
1 changed files with 1 additions and 1 deletions

View File

@ -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 {