Skip to content

Commit

Permalink
Handle multile resizes of delete bits in OffsetIndex.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuujo committed Aug 5, 2015
1 parent 5a263da commit 6e0a7f3
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -324,7 +324,9 @@ public void truncate(int offset) {
*/
public boolean delete(int offset) {
if (deletes.size() <= offset) {
deletes.resize(deletes.size() * 2);
while (deletes.size() <= offset) {
deletes.resize(deletes.size() * 2);
}
}
return deletes.set(offset);
}
Expand Down

0 comments on commit 6e0a7f3

Please sign in to comment.