Skip to content

Instantly share code, notes, and snippets.

@afeinberg
Created January 22, 2010 19:25
Show Gist options
  • Save afeinberg/284058 to your computer and use it in GitHub Desktop.
Save afeinberg/284058 to your computer and use it in GitHub Desktop.
diff --git a/src/java/voldemort/cluster/failuredetector/AbstractFailureDetector.java b/src/java/voldemort/cluster/failuredetector/Ab
index 146cdba..2ad9c3c 100644
--- a/src/java/voldemort/cluster/failuredetector/AbstractFailureDetector.java
+++ b/src/java/voldemort/cluster/failuredetector/AbstractFailureDetector.java
@@ -216,8 +216,8 @@ public abstract class AbstractFailureDetector implements FailureDetector {
if(nodeStatus == null) {
logger.warn("creating new node status for node " + node + " for failure detector.");
- nodeStatusMap.put(node, createNodeStatus(node, failureDetectorConfig.getTime()
- .getMilliseconds()));
+ nodeStatus = createNodeStatus(node, failureDetectorConfig.getTime().getMilliseconds());
+ nodeStatusMap.put(node, nodeStatus);
}
return nodeStatus;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment