Skip to content

Commit 8f2cc87

Browse files
author
Daniel Cooke
committed
Fix BufferedReadPipe::get_max_fetch_region
1 parent cf63609 commit 8f2cc87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/readpipe/buffered_read_pipe.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ GenomicRegion BufferedReadPipe::get_max_fetch_region(const GenomicRegion& reques
118118
if (hints_.empty() || hints_.count(request.contig_name()) == 0 || hints_.at(request.contig_name()).empty()) {
119119
return default_max_region;
120120
} else {
121-
const auto contained_hints = contained_range(hints_.at(request.contig_name()), default_max_region);
121+
const auto hint_search_region = right_overhang_region(default_max_region, request);
122+
const auto contained_hints = contained_range(hints_.at(request.contig_name()), hint_search_region);
122123
if (empty(contained_hints)) {
123124
return request;
124125
} else {

0 commit comments

Comments
 (0)