cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r992119 - /cassandra/trunk/src/java/org/apache/cassandra/avro/AvroValidation.java
Date Thu, 02 Sep 2010 21:17:25 GMT
Author: brandonwilliams
Date: Thu Sep  2 21:17:19 2010
New Revision: 992119

URL: http://svn.apache.org/viewvc?rev=992119&view=rev
Log:
extract array from ByteBuffer in AvroValidation.validateIndexClauses.  Patch by gdusbabek,
reviewed by brandonwilliams

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/avro/AvroValidation.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/avro/AvroValidation.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/avro/AvroValidation.java?rev=992119&r1=992118&r2=992119&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/avro/AvroValidation.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/avro/AvroValidation.java Thu Sep  2 21:17:19
2010
@@ -348,7 +348,7 @@ public class AvroValidation
         Set<byte[]> indexedColumns = Table.open(keyspace).getColumnFamilyStore(columnFamily).getIndexedColumns();
         for (IndexExpression expression : index_clause.expressions)
         {
-            if (expression.op.equals(IndexOperator.EQ) && indexedColumns.contains(expression.column_name))
+            if (expression.op.equals(IndexOperator.EQ) && indexedColumns.contains(expression.column_name.array()))
                 return;
         }
         throw newInvalidRequestException("No indexed columns present in index clause with
operator EQ");



Mime
View raw message