cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brandonwilli...@apache.org
Subject svn commit: r992037 - /cassandra/trunk/src/java/org/apache/cassandra/avro/CassandraServer.java
Date Thu, 02 Sep 2010 17:52:33 GMT
Author: brandonwilliams
Date: Thu Sep  2 17:52:33 2010
New Revision: 992037

URL: http://svn.apache.org/viewvc?rev=992037&view=rev
Log:
avro get_range_slices defaults to CL.ONE.  Patch by Jeremy Hanna, reviewed by brandonwilliams

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

Modified: cassandra/trunk/src/java/org/apache/cassandra/avro/CassandraServer.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/avro/CassandraServer.java?rev=992037&r1=992036&r2=992037&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/avro/CassandraServer.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/avro/CassandraServer.java Thu Sep  2 17:52:33
2010
@@ -1067,6 +1067,12 @@ public class CassandraServer implements 
     public List<KeySlice> get_range_slices(ColumnParent column_parent, SlicePredicate
slice_predicate, KeyRange range, ConsistencyLevel consistency_level)
     throws InvalidRequestException, TimedOutException
     {
+        //Mirrors default CL value in thrift
+        if (consistency_level == null)
+        {
+            consistency_level = ConsistencyLevel.ONE;
+        }
+
         String keyspace = clientState.getKeyspace();
         try
         {



Mime
View raw message