cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1041028 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java
Date Wed, 01 Dec 2010 14:47:31 GMT
Author: jbellis
Date: Wed Dec  1 14:47:30 2010
New Revision: 1041028

URL: http://svn.apache.org/viewvc?rev=1041028&view=rev
Log:
s/Hashtable/MashMap/
patch by Dave Brosius; reviewed by jbellis for CASSANDRA-1795

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java?rev=1041028&r1=1041027&r2=1041028&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java (original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/gms/Gossiper.java Wed Dec
 1 14:47:30 2010
@@ -420,7 +420,7 @@ public class Gossiper implements IFailur
         
         if (!justRemovedEndpoints_.isEmpty())
         {
-            Hashtable<InetAddress, Long> copy = new Hashtable<InetAddress, Long>(justRemovedEndpoints_);
+            Map<InetAddress, Long> copy = new HashMap<InetAddress, Long>(justRemovedEndpoints_);
             for (Map.Entry<InetAddress, Long> entry : copy.entrySet())
             {
                 if ((now - entry.getValue()) > StorageService.RING_DELAY)



Mime
View raw message