cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: remove unused serializedSize field
Date Tue, 14 May 2013 02:06:55 GMT
Updated Branches:
  refs/heads/trunk 174103386 -> 4adb583c2


remove unused serializedSize field


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

Branch: refs/heads/trunk
Commit: 4adb583c207b83b3b57725ba3d1ccd862ff5c087
Parents: 1741033
Author: Dave Brosius <dbrosius@apache.org>
Authored: Mon May 13 21:59:07 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Mon May 13 22:05:27 2013 -0400

----------------------------------------------------------------------
 .../db/compaction/LazilyCompactedRow.java          |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4adb583c/src/java/org/apache/cassandra/db/compaction/LazilyCompactedRow.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/compaction/LazilyCompactedRow.java b/src/java/org/apache/cassandra/db/compaction/LazilyCompactedRow.java
index c3f246f..a94db88 100644
--- a/src/java/org/apache/cassandra/db/compaction/LazilyCompactedRow.java
+++ b/src/java/org/apache/cassandra/db/compaction/LazilyCompactedRow.java
@@ -25,8 +25,6 @@ import java.util.List;
 
 import com.google.common.base.Predicates;
 import com.google.common.collect.Iterators;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import org.apache.cassandra.db.*;
 import org.apache.cassandra.db.columniterator.OnDiskAtomIterator;
@@ -36,7 +34,6 @@ import org.apache.cassandra.io.sstable.ColumnStats;
 import org.apache.cassandra.io.sstable.SSTable;
 import org.apache.cassandra.io.sstable.SSTableWriter;
 import org.apache.cassandra.io.util.DataOutputBuffer;
-import org.apache.cassandra.utils.ByteBufferUtil;
 import org.apache.cassandra.utils.MergeIterator;
 import org.apache.cassandra.utils.StreamingHistogram;
 
@@ -49,8 +46,6 @@ import org.apache.cassandra.utils.StreamingHistogram;
  */
 public class LazilyCompactedRow extends AbstractCompactedRow implements Iterable<OnDiskAtom>
 {
-    private static Logger logger = LoggerFactory.getLogger(LazilyCompactedRow.class);
-
     private final List<? extends OnDiskAtomIterator> rows;
     private final CompactionController controller;
     private final boolean shouldPurge;
@@ -190,7 +185,6 @@ public class LazilyCompactedRow extends AbstractCompactedRow implements
Iterable
         // tombstone reference; will be reconciled w/ column during getReduced
         RangeTombstone tombstone;
 
-        long serializedSize = 4; // int for column count
         int columns = 0;
         long minTimestampSeen = Long.MAX_VALUE;
         long maxTimestampSeen = Long.MIN_VALUE;
@@ -229,7 +223,6 @@ public class LazilyCompactedRow extends AbstractCompactedRow implements
Iterable
                 }
                 else
                 {
-                    serializedSize += t.serializedSizeForSSTable();
                     return t;
                 }
             }
@@ -250,7 +243,6 @@ public class LazilyCompactedRow extends AbstractCompactedRow implements
Iterable
                 if (indexBuilder.tombstoneTracker().isDeleted(reduced))
                     return null;
 
-                serializedSize += reduced.serializedSizeForSSTable();
                 columns++;
                 minTimestampSeen = Math.min(minTimestampSeen, reduced.minTimestamp());
                 maxTimestampSeen = Math.max(maxTimestampSeen, reduced.maxTimestamp());


Mime
View raw message