cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc...@apache.org
Subject [1/2] cassandra git commit: Make it possible to run dc local repairs
Date Tue, 02 Jun 2015 15:39:10 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk e27e97413 -> bde7615c2


Make it possible to run dc local repairs

Patch by marcuse; reviewed by yukim for CASSANDRA-9521


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

Branch: refs/heads/trunk
Commit: b2e4d10155afa3618ba1a9066c6ffc13489c73d8
Parents: 4cfb17f
Author: Marcus Eriksson <marcuse@apache.org>
Authored: Tue Jun 2 17:36:42 2015 +0200
Committer: Marcus Eriksson <marcuse@apache.org>
Committed: Tue Jun 2 17:36:42 2015 +0200

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/StorageService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b2e4d101/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 8afb93f..4fdb7b7 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -2966,7 +2966,7 @@ public class StorageService extends NotificationBroadcasterSupport implements
IE
 
     private FutureTask<Object> createRepairTask(final int cmd, final String keyspace,
final RepairOption options)
     {
-        if (!options.getDataCenters().isEmpty() && options.getDataCenters().contains(DatabaseDescriptor.getLocalDataCenter()))
+        if (!options.getDataCenters().isEmpty() && !options.getDataCenters().contains(DatabaseDescriptor.getLocalDataCenter()))
         {
             throw new IllegalArgumentException("the local data center must be part of the
repair");
         }


Mime
View raw message