You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by jb...@apache.org on 2013/02/27 19:34:16 UTC
[2/7] git commit: use systemKeyspaceNames instead of hardcoding
system + trace
use systemKeyspaceNames instead of hardcoding system + trace
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6d3002fe
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6d3002fe
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6d3002fe
Branch: refs/heads/trunk
Commit: 6d3002fecb5c84a99b1110d49257021491e10e67
Parents: 7e1e076
Author: Jonathan Ellis <jb...@apache.org>
Authored: Wed Feb 27 12:33:16 2013 -0600
Committer: Jonathan Ellis <jb...@apache.org>
Committed: Wed Feb 27 12:33:22 2013 -0600
----------------------------------------------------------------------
.../apache/cassandra/service/StorageService.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/6d3002fe/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 11ae98b..dfd948d 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -2364,7 +2364,7 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
public void forceTableRepairRange(final String tableName, final Collection<Range<Token>> ranges, boolean isSequential, boolean isLocal, final String... columnFamilies) throws IOException
{
- if (Table.SYSTEM_KS.equals(tableName) || Tracing.TRACE_KS.equals(tableName))
+ if (Schema.systemKeyspaceNames.contains(tableName))
return;
createRepairTask(nextRepairCommand.incrementAndGet(), tableName, ranges, isSequential, isLocal, columnFamilies).run();
}