Skip to content

Commit

Permalink
Merge branch '3.4' of github.com:belaban/JGroups into 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Nov 7, 2014
2 parents 0fe41ed + ac0af01 commit df3b383
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/org/jgroups/protocols/FD_HOST.java
Expand Up @@ -381,9 +381,9 @@ public void run() {
}
targets.remove(local_host);

// 1. Ping each host
for(InetAddress target: targets) {
try {
// Ping each host
boolean is_alive=ping_command.isAlive(target, check_timeout);
num_liveness_checks++;
if(is_alive)
Expand All @@ -403,15 +403,6 @@ public void run() {
log.error("%s: ping command failed: %s", local_addr, e);
}
}

// 2. Check timestamps
long current_time=getTimestamp();
for(Map.Entry<InetAddress,Long> entry: timestamps.entrySet()) {
InetAddress host=entry.getKey();
long timestamp=entry.getValue();
if(current_time - timestamp >= timeout)
suspect(host);
}
}
}

Expand Down

0 comments on commit df3b383

Please sign in to comment.