cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r981115 - in /cassandra/branches/cassandra-0.6: CHANGES.txt src/java/org/apache/cassandra/db/RowMutation.java
Date Sun, 01 Aug 2010 01:33:02 GMT
Author: jbellis
Date: Sun Aug  1 01:33:01 2010
New Revision: 981115

URL: http://svn.apache.org/viewvc?rev=981115&view=rev
Log:
remove String.trim() call on row keys in batch mutations.  patch by Folke Behrens; reviewed
by jbellis for CASSANDRA-1235

Modified:
    cassandra/branches/cassandra-0.6/CHANGES.txt
    cassandra/branches/cassandra-0.6/src/java/org/apache/cassandra/db/RowMutation.java

Modified: cassandra/branches/cassandra-0.6/CHANGES.txt
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.6/CHANGES.txt?rev=981115&r1=981114&r2=981115&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.6/CHANGES.txt (original)
+++ cassandra/branches/cassandra-0.6/CHANGES.txt Sun Aug  1 01:33:01 2010
@@ -1,6 +1,8 @@
 0.6.5
  * page within a single row during hinted handoff (CASSANDRA-1327)
  * fix compilation on non-sun JKDs (CASSANDRA-1061)
+ * remove String.trim() call on row keys in batch mutations (CASSANDRA-1235)
+
 
 0.6.4
  * avoid queuing multiple hint deliveries for the same endpoint

Modified: cassandra/branches/cassandra-0.6/src/java/org/apache/cassandra/db/RowMutation.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.6/src/java/org/apache/cassandra/db/RowMutation.java?rev=981115&r1=981114&r2=981115&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.6/src/java/org/apache/cassandra/db/RowMutation.java (original)
+++ cassandra/branches/cassandra-0.6/src/java/org/apache/cassandra/db/RowMutation.java Sun
Aug  1 01:33:01 2010
@@ -224,7 +224,7 @@ public class RowMutation
 
     public static RowMutation getRowMutationFromMutations(String keyspace, String key, Map<String,
List<Mutation>> cfmap)
     {
-        RowMutation rm = new RowMutation(keyspace, key.trim());
+        RowMutation rm = new RowMutation(keyspace, key);
         for (Map.Entry<String, List<Mutation>> entry : cfmap.entrySet())
         {
             String cfName = entry.getKey();
@@ -245,7 +245,7 @@ public class RowMutation
     
     public static RowMutation getRowMutation(String table, String key, Map<String, List<ColumnOrSuperColumn>>
cfmap)
     {
-        RowMutation rm = new RowMutation(table, key.trim());
+        RowMutation rm = new RowMutation(table, key);
         for (Map.Entry<String, List<ColumnOrSuperColumn>> entry : cfmap.entrySet())
         {
             String cfName = entry.getKey();



Mime
View raw message