bug 12849: remove agent will kickstart HA if the host status is Down or Alert. The update is therefore moved before it

reviewed by: kishan
This commit is contained in:
abhi 2012-01-30 18:10:37 +05:30
parent 88a9b2f973
commit 606708e0a3
1 changed files with 1 additions and 1 deletions

View File

@ -1110,8 +1110,8 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory, Manager {
if (s_logger.isDebugEnabled()) {
s_logger.debug("Deregistering link for " + hostId + " with state " + nextState);
}
removeAgent(attache, nextState, event, investigate);
_hostDao.disconnect(host, event, _nodeId);
removeAgent(attache, nextState, event, investigate);
return true;
}