Skip to content

Commit

Permalink
0005242: DataGapFastDetector- needs to make sure that we find the last
Browse files Browse the repository at this point in the history
gap that is really the last gap
  • Loading branch information
Philip Marzullo committed Mar 16, 2022
1 parent 9a2d69f commit 372d746
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -413,7 +413,7 @@ protected void fixOverlappingGaps(List<DataGap> gapsToCheck, ProcessInfo process
dataService.deleteDataGap(transaction, curGap);
gapsCopy.remove(i--);
} else {
if (lastGap == null && curGap.gapSize() >= maxDataToSelect - 1) {
if (lastGap == null && curGap.gapSize() >= maxDataToSelect - 1 && gapsCopy.get(gapsCopy.size() - 1).gapSize() < maxDataToSelect - 1) {
lastGap = curGap;
}
if (prevGap != null) {
Expand Down

0 comments on commit 372d746

Please sign in to comment.