Bug 13394 - HA XEN- After host is disconnected from network & reconnected to network, host remains in Connecting state

get current update count before update agent status otherwise the operation would fail because someone before he
update the update count
status 13394: resolved fixed
This commit is contained in:
frank 2012-01-31 13:57:25 -08:00
parent 0e03e0d5fd
commit 7359789541
1 changed files with 1 additions and 1 deletions

View File

@ -583,7 +583,7 @@ public class HostDaoImpl extends GenericDaoBase<HostVO, Long> implements HostDao
@Override
public boolean updateState(Status oldStatus, Event event, Status newStatus, Host vo, Object data) {
HostVO host = (HostVO) vo;
HostVO host = findById(vo.getId());
long oldPingTime = host.getLastPinged();
SearchBuilder<HostVO> sb = createSearchBuilder();