bug 10029: update mshost state instead of removing it

This commit is contained in:
Kelven Yang 2011-06-24 11:16:40 -07:00
parent 83773978e3
commit 1db2667c54
1 changed files with 4 additions and 2 deletions

View File

@ -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();