cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eev...@apache.org
Subject svn commit: r1082758 - /cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java
Date Thu, 17 Mar 2011 23:57:01 GMT
Author: eevans
Date: Thu Mar 17 23:57:00 2011
New Revision: 1082758

URL: http://svn.apache.org/viewvc?rev=1082758&view=rev
Log:
avoid unnecessary String -> BB conversions

Patch by eevans

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java?rev=1082758&r1=1082757&r2=1082758&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/cql/QueryProcessor.java Thu Mar 17 23:57:00
2011
@@ -605,8 +605,9 @@ public class QueryProcessor
                     {
                         for (Term column : delete.getColumns())
                         {
-                            validateColumnName(keyspace, delete.getColumnFamily(), column.getByteBuffer(comparator));
-                            rm.delete(new QueryPath(delete.getColumnFamily(), null, column.getByteBuffer(comparator)),
+                            ByteBuffer columnName = column.getByteBuffer(comparator);
+                            validateColumnName(keyspace, delete.getColumnFamily(), columnName);
+                            rm.delete(new QueryPath(delete.getColumnFamily(), null, columnName),
                                       System.currentTimeMillis());
                         }
                     }



Mime
View raw message