cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r773727 - /incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileStruct.java
Date Mon, 11 May 2009 23:48:34 GMT
Author: jbellis
Date: Mon May 11 23:48:34 2009
New Revision: 773727

URL: http://svn.apache.org/viewvc?rev=773727&view=rev
Log:
check for at-end-of-data in iterator init.  patch by jbellis; reviewed by Jun Rao for CASSANDRA-153

Modified:
    incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileStruct.java

Modified: incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileStruct.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileStruct.java?rev=773727&r1=773726&r2=773727&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileStruct.java (original)
+++ incubator/cassandra/trunk/src/java/org/apache/cassandra/db/FileStruct.java Mon May 11
23:48:34 2009
@@ -184,7 +184,14 @@
                     forward();
                 }
             }
-            saved = key;
+            if (key.equals(SSTable.blockIndexKey_))
+            {
+                saved = null;
+            }
+            else
+            {
+                saved = key;
+            }
         }
 
         private void forward()



Mime
View raw message