Skip to content

Commit

Permalink
Handle log delete checks when delete bits have not been expanded.
Browse files Browse the repository at this point in the history
  • Loading branch information
kuujo committed Aug 5, 2015
1 parent 6bc0b68 commit 5a263da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public boolean delete(int offset) {
* @return Whether the offset has been marked for deletion.
*/
public boolean deleted(int offset) {
return deletes.get(offset);
return deletes.size() > offset && deletes.get(offset);
}

/**
Expand Down

0 comments on commit 5a263da

Please sign in to comment.