cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject git commit: Fix ColumnFamilyStoreTest, NativeCellTest, SSTableMetadataTest unit tests on 2.1
Date Wed, 14 May 2014 02:18:22 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 fc59801a0 -> 50c18fd40


Fix ColumnFamilyStoreTest, NativeCellTest, SSTableMetadataTest unit tests on 2.1

Patch by Benedict Elliott Smith; reviewed by Michael Shuler for CASSANDRA-7201


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

Branch: refs/heads/cassandra-2.1
Commit: 50c18fd4038bdd2f52ec6769db0aaa65dd1deda6
Parents: fc59801
Author: Jake Luciani <jake@apache.org>
Authored: Tue May 13 22:15:25 2014 -0400
Committer: Jake Luciani <jake@apache.org>
Committed: Tue May 13 22:15:25 2014 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/NativeCounterCell.java | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/50c18fd4/src/java/org/apache/cassandra/db/NativeCounterCell.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/NativeCounterCell.java b/src/java/org/apache/cassandra/db/NativeCounterCell.java
index 2828e13..5eba27c 100644
--- a/src/java/org/apache/cassandra/db/NativeCounterCell.java
+++ b/src/java/org/apache/cassandra/db/NativeCounterCell.java
@@ -17,6 +17,8 @@
  */
 package org.apache.cassandra.db;
 
+import java.nio.ByteBuffer;
+import java.nio.ByteOrder;
 import java.security.MessageDigest;
 
 import org.apache.cassandra.config.CFMetaData;
@@ -66,6 +68,11 @@ public class NativeCounterCell extends NativeCell implements CounterCell
         return getLong(internalSize() - 8);
     }
 
+    public ByteBuffer value()
+    {
+        return super.value().order(ByteOrder.BIG_ENDIAN);
+    }
+
     @Override
     public long total()
     {


Mime
View raw message