| | |
| | | int sid = db.getServerId(); |
| | | |
| | | // Should it be considered for eligibility ? |
| | | ChangeNumber heartbeatLastDN = |
| | | ChangeNumber heartbeatLastCN = |
| | | getChangeTimeHeartbeatState().getChangeNumber(sid); |
| | | |
| | | // If the most recent UpdateMsg or CLHeartbeatMsg received is very old |
| | |
| | | { |
| | | eligibleCN = changelogLastCN; |
| | | } |
| | | if (heartbeatLastDN != null |
| | | && (eligibleCN == null || heartbeatLastDN.newer(eligibleCN))) |
| | | if (heartbeatLastCN != null |
| | | && (eligibleCN == null || heartbeatLastCN.newer(eligibleCN))) |
| | | { |
| | | eligibleCN = heartbeatLastDN; |
| | | eligibleCN = heartbeatLastCN; |
| | | } |
| | | } |
| | | |