Skip to content

Commit

Permalink
restore clause guarding pruneCache check
Browse files Browse the repository at this point in the history
removing in bigdatagenomics#684 was a mistake, assumed it was redundant but it's not!
  • Loading branch information
ryan-williams committed Jun 3, 2015
1 parent 1adc0db commit ee32831
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ private case class SortedIntervalPartitionJoin[T, U](binRegion: ReferenceRegion,
advanceCache(nextLeftRegion.end)
}
// ...and whether I need to prune the cache
if (prevLeftRegion == null) {
if (prevLeftRegion == null || nextLeftRegion.start > prevLeftRegion.start) {
pruneCache(nextLeftRegion.start)
}
// at this point, we effectively do a cross-product and filter; this could probably
Expand Down

0 comments on commit ee32831

Please sign in to comment.