Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
call iter.next before iter.remove
patch by jbellis; reviewed by brandonwilliams for CASSANDRA-5440
  • Loading branch information
jbellis committed Apr 9, 2013
1 parent 1626759 commit 08b2bc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/java/org/apache/cassandra/db/filter/SliceQueryFilter.java
Expand Up @@ -184,7 +184,10 @@ public void trim(ColumnFamily cf, int trimTo)
{ {
iter.remove(); iter.remove();
while (iter.hasNext()) while (iter.hasNext())
{
iter.next();
iter.remove(); iter.remove();
}
} }
} }
} }
Expand Down

0 comments on commit 08b2bc5

Please sign in to comment.