cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yu...@apache.org
Subject git commit: Fix incorrect call of serializedSize
Date Fri, 05 Oct 2012 18:21:01 GMT
Updated Branches:
  refs/heads/trunk 11f7d7253 -> 074f4befa


Fix incorrect call of serializedSize


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

Branch: refs/heads/trunk
Commit: 074f4befaa0e5b7a7a3bf8dbaabdc3388ff61f8e
Parents: 11f7d72
Author: Yuki Morishita <yukim@apache.org>
Authored: Fri Oct 5 13:20:19 2012 -0500
Committer: Yuki Morishita <yukim@apache.org>
Committed: Fri Oct 5 13:20:19 2012 -0500

----------------------------------------------------------------------
 .../org/apache/cassandra/db/RangeTombstone.java    |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/074f4bef/src/java/org/apache/cassandra/db/RangeTombstone.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/RangeTombstone.java b/src/java/org/apache/cassandra/db/RangeTombstone.java
index b8ff027..1b85c59 100644
--- a/src/java/org/apache/cassandra/db/RangeTombstone.java
+++ b/src/java/org/apache/cassandra/db/RangeTombstone.java
@@ -170,10 +170,9 @@ public class RangeTombstone extends Interval<ByteBuffer, DeletionTime>
implement
                 toWrite.add(tombstone);
             }
 
-            TypeSizes typeSizes = TypeSizes.NATIVE;
             for (RangeTombstone tombstone : toWrite)
             {
-                size += tombstone.serializedSize(typeSizes);
+                size += tombstone.serializedSizeForSSTable();
                 atomCount++;
                 if (out != null)
                     atomSerializer.serializeForSSTable(tombstone, out);


Mime
View raw message