cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: make it obvious that this side effect constructor was intentional
Date Thu, 02 Apr 2015 00:57:37 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 87ef146b4 -> 0655217ea


make it obvious that this side effect constructor was intentional


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

Branch: refs/heads/trunk
Commit: 0655217ea5168c01c1a829321906f3e8630cee64
Parents: 87ef146
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Wed Apr 1 20:57:21 2015 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Wed Apr 1 20:57:21 2015 -0400

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0655217e/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 7afea0f..cc690ad 100644
--- a/src/java/org/apache/cassandra/db/compaction/Verifier.java
+++ b/src/java/org/apache/cassandra/db/compaction/Verifier.java
@@ -184,7 +184,8 @@ public class Verifier implements Closeable
                     if (key == null || dataSize > dataFile.length())
                         markAndThrow();
 
-                    SSTableIdentityIterator atoms = new SSTableIdentityIterator(sstable,
dataFile, key, true);
+                    //mimic the scrub read path
+                    new SSTableIdentityIterator(sstable, dataFile, key, true);
                     if ( (prevKey != null && prevKey.compareTo(key) > 0) || !key.getKey().equals(currentIndexKey)
|| dataStart != dataStartFromIndex )
                         markAndThrow();
                     


Mime
View raw message