cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: simplify
Date Fri, 10 Apr 2015 03:31:33 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 7e25f3bc0 -> 958166766


simplify


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

Branch: refs/heads/trunk
Commit: 958166766558e9df367fadfc2331d2d7d3b34bd8
Parents: 7e25f3b
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Thu Apr 9 23:29:59 2015 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Thu Apr 9 23:31:15 2015 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/compaction/Verifier.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/95816676/src/java/org/apache/cassandra/db/compaction/Verifier.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/compaction/Verifier.java b/src/java/org/apache/cassandra/db/compaction/Verifier.java
index cc690ad..1d37c6f 100644
--- a/src/java/org/apache/cassandra/db/compaction/Verifier.java
+++ b/src/java/org/apache/cassandra/db/compaction/Verifier.java
@@ -142,7 +142,6 @@ public class Verifier implements Closeable
                 outputHandler.debug("Reading row at " + rowStart);
 
                 DecoratedKey key = null;
-                long dataSize = -1;
                 try
                 {
                     key = sstable.partitioner.decorateKey(ByteBufferUtil.readWithShortLength(dataFile));
@@ -172,7 +171,7 @@ public class Verifier implements Closeable
                                         ? -1
                                         : rowStart + 2 + currentIndexKey.remaining();
 
-                dataSize = nextRowPositionFromIndex - dataStartFromIndex;
+                long dataSize = nextRowPositionFromIndex - dataStartFromIndex;
                 // avoid an NPE if key is null
                 String keyName = key == null ? "(unreadable key)" : ByteBufferUtil.bytesToHex(key.getKey());
                 outputHandler.debug(String.format("row %s is %s bytes", keyName, dataSize));


Mime
View raw message