mirror of https://github.com/apache/cloudstack.git
bug 10029: update mshost state instead of removing it
This commit is contained in:
parent
83773978e3
commit
1db2667c54
|
|
@ -922,10 +922,12 @@ public class ClusterManagerImpl implements ClusterManager {
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Override @DB
|
||||
public boolean stop() {
|
||||
if(_mshostId != null) {
|
||||
_mshostDao.remove(_mshostId);
|
||||
ManagementServerHostVO mshost = _mshostDao.findByMsid(_msId);
|
||||
mshost.setState(ManagementServerHost.State.Down);
|
||||
_mshostDao.update(_mshostId, mshost);
|
||||
}
|
||||
|
||||
_heartbeatScheduler.shutdownNow();
|
||||
|
|
|
|||
Loading…
Reference in New Issue