cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcken...@apache.org
Subject cassandra git commit: Allow snapshot-based repair on Windows for 3.0
Date Fri, 14 Nov 2014 16:54:29 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk b4d7f3bed -> 58fdc6b5c


Allow snapshot-based repair on Windows for 3.0

Patch by jmckenzie; reviewed by yukim for CASSANDRA-8309


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

Branch: refs/heads/trunk
Commit: 58fdc6b5c027215edad4802b2ced453f3ebba2cc
Parents: b4d7f3b
Author: Joshua McKenzie <jmckenzie@apache.org>
Authored: Fri Nov 14 10:52:28 2014 -0600
Committer: Joshua McKenzie <jmckenzie@apache.org>
Committed: Fri Nov 14 10:52:28 2014 -0600

----------------------------------------------------------------------
 .../apache/cassandra/repair/messages/RepairOption.java    | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/58fdc6b5/src/java/org/apache/cassandra/repair/messages/RepairOption.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/repair/messages/RepairOption.java b/src/java/org/apache/cassandra/repair/messages/RepairOption.java
index fd1d6e7..3f59d7b 100644
--- a/src/java/org/apache/cassandra/repair/messages/RepairOption.java
+++ b/src/java/org/apache/cassandra/repair/messages/RepairOption.java
@@ -211,15 +211,7 @@ public class RepairOption
 
     public RepairOption(boolean sequential, boolean primaryRange, boolean incremental, int
jobThreads, Collection<Range<Token>> ranges)
     {
-        if (!FBUtilities.isUnix() && sequential)
-        {
-            logger.warn("Snapshot-based repair is not yet supported on Windows.  Reverting
to parallel repair.");
-            this.sequential = false;
-        }
-        else
-        {
-            this.sequential = sequential;
-        }
+        this.sequential = sequential;
         this.primaryRange = primaryRange;
         this.incremental = incremental;
         this.jobThreads = jobThreads;


Mime
View raw message