Fixing issue with candidate election

revert-70ac1926
Ace 4 years ago
parent c6db9eeecc
commit 7734dbd654

@ -212,10 +212,8 @@ public class HeartBeatManagementServiceImpl implements HeartBeatManagementServic
presentCandidate.getTimeOfElection().before(new Timestamp(System.currentTimeMillis() presentCandidate.getTimeOfElection().before(new Timestamp(System.currentTimeMillis()
- TimeUnit.SECONDS.toMillis(elapsedTimeInSeconds)))) { - TimeUnit.SECONDS.toMillis(elapsedTimeInSeconds)))) {
heartBeatDAO.purgeCandidates(); heartBeatDAO.purgeCandidates();
electCandidate(servers);
} else {
electCandidate(servers);
} }
electCandidate(servers);
HeartBeatBeaconDAOFactory.commitTransaction(); HeartBeatBeaconDAOFactory.commitTransaction();
} }
} catch (HeartBeatDAOException e) { } catch (HeartBeatDAOException e) {

Loading…
Cancel
Save