avoid unnecessary String -> BB conversions

Patch by eevans

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1082758 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Evans 2011-03-17 23:57:00 +00:00
parent e9446aee75
commit 2ba513058a
1 changed files with 3 additions and 2 deletions

View File

@ -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());
}
}