cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [6/7] git commit: update hasSameReplication to use the List passed to it patch by dbrosius; reviewed by jbellis for CASSANDRA-3971
Date Tue, 28 Feb 2012 18:03:12 GMT
update hasSameReplication to use the List passed to it
patch by dbrosius; reviewed by jbellis for CASSANDRA-3971


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0d40edb4
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0d40edb4
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0d40edb4

Branch: refs/heads/trunk
Commit: 0d40edb40f695dbda1e5da6787424ac067a8f081
Parents: 2e79069
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Tue Feb 28 10:34:18 2012 -0600
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Tue Feb 28 10:36:28 2012 -0600

----------------------------------------------------------------------
 .../apache/cassandra/service/StorageService.java   |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0d40edb4/src/java/org/apache/cassandra/service/StorageService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java
index 4ea8ed1..1022631 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -2668,10 +2668,11 @@ public class StorageService implements IEndpointStateChangeSubscriber,
StorageSe
     {
         if (list.isEmpty())
             return false;
+        
         for (int i = 0; i < list.size() -1; i++)
         {
-            KSMetaData ksm1 = Schema.instance.getKSMetaData(Schema.instance.getNonSystemTables().get(i));
-            KSMetaData ksm2 = Schema.instance.getKSMetaData(Schema.instance.getNonSystemTables().get(i
+ 1));
+            KSMetaData ksm1 = Schema.instance.getKSMetaData(list.get(i));
+            KSMetaData ksm2 = Schema.instance.getKSMetaData(list.get(i + 1));
             if (!ksm1.strategyClass.equals(ksm2.strategyClass) ||
                     !Iterators.elementsEqual(ksm1.strategyOptions.entrySet().iterator(),
                                              ksm2.strategyOptions.entrySet().iterator()))


Mime
View raw message