cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r832822 - /incubator/cassandra/branches/cassandra-0.4/src/java/org/apache/cassandra/dht/LeaveJoinProtocolImpl.java
Date Wed, 04 Nov 2009 18:04:23 GMT
Author: jbellis
Date: Wed Nov  4 18:04:22 2009
New Revision: 832822

URL: http://svn.apache.org/viewvc?rev=832822&view=rev
Log:
r/m obsolete calls to updateTokenMetadata from a manual test method (fixes build).  patch
by jbellis

Modified:
    incubator/cassandra/branches/cassandra-0.4/src/java/org/apache/cassandra/dht/LeaveJoinProtocolImpl.java

Modified: incubator/cassandra/branches/cassandra-0.4/src/java/org/apache/cassandra/dht/LeaveJoinProtocolImpl.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/branches/cassandra-0.4/src/java/org/apache/cassandra/dht/LeaveJoinProtocolImpl.java?rev=832822&r1=832821&r2=832822&view=diff
==============================================================================
--- incubator/cassandra/branches/cassandra-0.4/src/java/org/apache/cassandra/dht/LeaveJoinProtocolImpl.java
(original)
+++ incubator/cassandra/branches/cassandra-0.4/src/java/org/apache/cassandra/dht/LeaveJoinProtocolImpl.java
Wed Nov  4 18:04:22 2009
@@ -273,20 +273,4 @@
         
         return map;
     }
-
-    public static void main(String[] args) throws Throwable
-    {
-        StorageService ss = StorageService.instance();
-        ss.updateTokenMetadata(new BigIntegerToken("3"), new EndPoint("A", 7000));
-        ss.updateTokenMetadata(new BigIntegerToken("6"), new EndPoint("B", 7000));
-        ss.updateTokenMetadata(new BigIntegerToken("9"), new EndPoint("C", 7000));
-        ss.updateTokenMetadata(new BigIntegerToken("12"), new EndPoint("D", 7000));
-        ss.updateTokenMetadata(new BigIntegerToken("15"), new EndPoint("E", 7000));
-        ss.updateTokenMetadata(new BigIntegerToken("18"), new EndPoint("F", 7000));
-        ss.updateTokenMetadata(new BigIntegerToken("21"), new EndPoint("G", 7000));
-        ss.updateTokenMetadata(new BigIntegerToken("24"), new EndPoint("H", 7000));
-        
-        Runnable runnable = new LeaveJoinProtocolImpl( new EndPoint[]{new EndPoint("C", 7000),
new EndPoint("D", 7000)}, new Token[]{new BigIntegerToken("22"), new BigIntegerToken("23")}
);
-        runnable.run();
-    }
 }



Mime
View raw message