cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: CASSANDRA-12544 Portability Flaw: Locale Dependent Comparison
Date Sat, 27 Aug 2016 18:33:04 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 29239c765 -> af4ebfffc


CASSANDRA-12544 Portability Flaw: Locale Dependent Comparison

use Locale.ENGLISH as table meta data is always english


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

Branch: refs/heads/trunk
Commit: af4ebfffcfad203563c8eeadf68b2c3b0ecf2f1c
Parents: 29239c7
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Sat Aug 27 14:32:10 2016 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Sat Aug 27 14:32:10 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/af4ebfff/src/java/org/apache/cassandra/schema/LegacySchemaMigrator.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/schema/LegacySchemaMigrator.java b/src/java/org/apache/cassandra/schema/LegacySchemaMigrator.java
index 05233bd..9502860 100644
--- a/src/java/org/apache/cassandra/schema/LegacySchemaMigrator.java
+++ b/src/java/org/apache/cassandra/schema/LegacySchemaMigrator.java
@@ -282,7 +282,7 @@ public final class LegacySchemaMigrator
         AbstractType<?> rawComparator = TypeParser.parse(tableRow.getString("comparator"));
         AbstractType<?> subComparator = tableRow.has("subcomparator") ? TypeParser.parse(tableRow.getString("subcomparator"))
: null;
 
-        boolean isSuper = "super".equals(tableRow.getString("type").toLowerCase());
+        boolean isSuper = "super".equals(tableRow.getString("type").toLowerCase(Locale.ENGLISH));
         boolean isCompound = rawComparator instanceof CompositeType || isSuper;
 
         /*


Mime
View raw message