cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [2/2] cassandra git commit: Quote keyspace names in ACFIP
Date Fri, 15 May 2015 11:16:52 GMT
Quote keyspace names in ACFIP

patch by Philip Thompson; reviewed by Mike Adamson for CASSANDRA-9390


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

Branch: refs/heads/trunk
Commit: 5c54f42ffa72ee940eb74ec2ee8805e4edad5eff
Parents: 81b0acb
Author: Philip Thompson <ptnapoleon@gmail.com>
Authored: Fri May 15 14:15:13 2015 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Fri May 15 14:15:13 2015 +0300

----------------------------------------------------------------------
 .../apache/cassandra/hadoop/AbstractColumnFamilyInputFormat.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/5c54f42f/src/java/org/apache/cassandra/hadoop/AbstractColumnFamilyInputFormat.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/hadoop/AbstractColumnFamilyInputFormat.java b/src/java/org/apache/cassandra/hadoop/AbstractColumnFamilyInputFormat.java
index 2ef4cf4..f37504b 100644
--- a/src/java/org/apache/cassandra/hadoop/AbstractColumnFamilyInputFormat.java
+++ b/src/java/org/apache/cassandra/hadoop/AbstractColumnFamilyInputFormat.java
@@ -240,7 +240,7 @@ public abstract class AbstractColumnFamilyInputFormat<K, Y> extends
InputFormat<
         Map<TokenRange, Set<Host>> map = new HashMap<>();
         Metadata metadata = session.getCluster().getMetadata();
         for (TokenRange tokenRange : metadata.getTokenRanges())
-            map.put(tokenRange, metadata.getReplicas(keyspace, tokenRange));
+            map.put(tokenRange, metadata.getReplicas('"' + keyspace + '"', tokenRange));
         return map;
     }
 


Mime
View raw message