You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2014/02/07 05:42:25 UTC
[1/2] git commit: remove dead code
Updated Branches:
refs/heads/trunk 88bef0cbf -> c3670e4f8
remove dead code
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6e0ce7a0
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6e0ce7a0
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6e0ce7a0
Branch: refs/heads/trunk
Commit: 6e0ce7a0507f58aab61343bdc6e8d955834cb321
Parents: ce9c8c2
Author: Dave Brosius <db...@mebigfatguy.com>
Authored: Thu Feb 6 23:40:32 2014 -0500
Committer: Dave Brosius <db...@mebigfatguy.com>
Committed: Thu Feb 6 23:40:32 2014 -0500
----------------------------------------------------------------------
src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/6e0ce7a0/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java b/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
index 535dbb3..e9d55d4 100644
--- a/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
+++ b/src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java
@@ -49,7 +49,6 @@ public class DynamicEndpointSnitch extends AbstractEndpointSnitch implements ILa
private boolean registered = false;
private final ConcurrentHashMap<InetAddress, Double> scores = new ConcurrentHashMap<InetAddress, Double>();
- private final ConcurrentHashMap<InetAddress, Long> lastReceived = new ConcurrentHashMap<InetAddress, Long>();
private final ConcurrentHashMap<InetAddress, ExponentiallyDecayingSample> samples = new ConcurrentHashMap<InetAddress, ExponentiallyDecayingSample>();
public final IEndpointSnitch subsnitch;
@@ -201,8 +200,6 @@ public class DynamicEndpointSnitch extends AbstractEndpointSnitch implements ILa
public void receiveTiming(InetAddress host, long latency) // this is cheap
{
- lastReceived.put(host, System.nanoTime());
-
ExponentiallyDecayingSample sample = samples.get(host);
if (sample == null)
{
[2/2] git commit: Merge branch 'cassandra-2.0' into trunk
Posted by db...@apache.org.
Merge branch 'cassandra-2.0' into trunk
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c3670e4f
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c3670e4f
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c3670e4f
Branch: refs/heads/trunk
Commit: c3670e4f8dc58067deb31ca4a0bb741cc8781b60
Parents: 88bef0c 6e0ce7a
Author: Dave Brosius <db...@mebigfatguy.com>
Authored: Thu Feb 6 23:42:00 2014 -0500
Committer: Dave Brosius <db...@mebigfatguy.com>
Committed: Thu Feb 6 23:42:00 2014 -0500
----------------------------------------------------------------------
src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java | 3 ---
1 file changed, 3 deletions(-)
----------------------------------------------------------------------