We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68f51de commit 7ede033Copy full SHA for 7ede033
1 file changed
src/line_buffer.cc
@@ -820,7 +820,6 @@ line_buffer::fill_range(file_off_t start,
820
scan_direction dir)
821
{
822
auto retval = false;
823
- auto got_preload = false;
824
825
require(start >= 0);
826
@@ -871,11 +870,9 @@ line_buffer::fill_range(file_off_t start,
871
870
this->lb_stats.s_used_preloads += 1;
872
this->lb_next_line_start_index = 0;
873
this->lb_next_buffer_offset = 0;
874
- got_preload = true;
875
}
876
if (this->in_range(start)
877
- && (got_preload || max_length == 0
878
- || this->in_range(start + max_length - 1)))
+ && (max_length == 0 || this->in_range(start + max_length - 1)))
879
880
// log_debug("fd(%d) cached!", this->lb_fd.get());
881
/* Cache already has the data, nothing to do. */
0 commit comments