Permalink
Browse files

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 08b2bc5963a8732b5444f42ee421f15df9c838ea
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/java/org/apache/cassandra/db/filter/SliceQueryFilter.java
@@ -184,7 +184,10 @@ public void trim(ColumnFamily cf, int trimTo)
{
iter.remove();
while (iter.hasNext())
+ {
+ iter.next();
iter.remove();
+ }
}
}
}

0 comments on commit 08b2bc5

Please sign in to comment.