cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject git commit: Fix QueryOptions.encode order
Date Fri, 26 Jul 2013 15:33:33 GMT
Updated Branches:
  refs/heads/trunk bfd73beaf -> 791522597


Fix QueryOptions.encode order


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/79152259
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/79152259
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/79152259

Branch: refs/heads/trunk
Commit: 791522597eb88248583dd83592af2522f44e5873
Parents: bfd73be
Author: Sylvain Lebresne <sylvain@datastax.com>
Authored: Fri Jul 26 17:33:19 2013 +0200
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Fri Jul 26 17:33:19 2013 +0200

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cql3/QueryOptions.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/79152259/src/java/org/apache/cassandra/cql3/QueryOptions.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/QueryOptions.java b/src/java/org/apache/cassandra/cql3/QueryOptions.java
index 662d463..9d8ab72 100644
--- a/src/java/org/apache/cassandra/cql3/QueryOptions.java
+++ b/src/java/org/apache/cassandra/cql3/QueryOptions.java
@@ -216,8 +216,8 @@ public class QueryOptions
             }
 
             CBUtil.BufferBuilder builder = new CBUtil.BufferBuilder(nbBuff, 0, options.values.size()
+ (flags.contains(Flag.PAGING_STATE) ? 1 : 0));
-            builder.add(CBUtil.byteToCB((byte)Flag.serialize(flags)));
             builder.add(CBUtil.consistencyLevelToCB(options.getConsistency()));
+            builder.add(CBUtil.byteToCB((byte)Flag.serialize(flags)));
 
             if (flags.contains(Flag.VALUES))
             {


Mime
View raw message