cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: KeyIterator no longer needs to hold onto the Descriptor
Date Mon, 29 Apr 2013 03:31:27 GMT
Updated Branches:
  refs/heads/trunk 0749c0415 -> 383d35ea5


KeyIterator no longer needs to hold onto the Descriptor


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

Branch: refs/heads/trunk
Commit: 383d35ea516deb4f127c1c9884ee64561da3cb2b
Parents: 0749c04
Author: Dave Brosius <dbrosius@apache.org>
Authored: Sun Apr 28 23:30:20 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Sun Apr 28 23:30:20 2013 -0400

----------------------------------------------------------------------
 .../apache/cassandra/io/sstable/KeyIterator.java   |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/383d35ea/src/java/org/apache/cassandra/io/sstable/KeyIterator.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/io/sstable/KeyIterator.java b/src/java/org/apache/cassandra/io/sstable/KeyIterator.java
index 0af4537..f4f7ee5 100644
--- a/src/java/org/apache/cassandra/io/sstable/KeyIterator.java
+++ b/src/java/org/apache/cassandra/io/sstable/KeyIterator.java
@@ -32,11 +32,9 @@ import org.apache.cassandra.utils.CloseableIterator;
 public class KeyIterator extends AbstractIterator<DecoratedKey> implements CloseableIterator<DecoratedKey>
 {
     private final RandomAccessReader in;
-    private final Descriptor desc;
 
     public KeyIterator(Descriptor desc)
     {
-        this.desc = desc;
         File path = new File(desc.filenameFor(SSTable.COMPONENT_INDEX));
         in = RandomAccessReader.open(path);
     }


Mime
View raw message