bug 11307: Using latest query result rather than set bumpup to false

After the host is disconnected, we can't get latest result, but it's not safe to
think it's priority bump up flag changed.
This commit is contained in:
Sheng Yang 2011-09-14 14:16:06 -07:00
parent 532de07176
commit c85902b04c

View File

@ -810,7 +810,7 @@ public class VirtualNetworkApplianceManagerImpl implements VirtualNetworkApplian
command.setAccessDetail(NetworkElementCommand.ROUTER_NAME, router.getInstanceName());
final CheckRouterAnswer answer = (CheckRouterAnswer) _agentMgr.easySend(router.getHostId(), command);
RedundantState state = RedundantState.UNKNOWN;
boolean isBumped = false;
boolean isBumped = router.getIsPriorityBumpUp();
if (answer != null && answer.getResult()) {
state = answer.getState();
isBumped = answer.isBumped();