Skip to content

Commit 4e8fe18

Browse files
committed
[logfile_sub_source] ensure rebuild is done on the next iteration in case no new data comes in
Related to #1531
1 parent 9eeee8e commit 4e8fe18

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/logfile_sub_source.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,8 @@ logfile_sub_source::rebuild_index(std::optional<ui_clock::time_point> deadline)
11021102

11031103
if (this->lss_index.empty() && !time_left) {
11041104
log_info("ran out of time, skipping rebuild");
1105+
// need to make sure we rebuild in case no new data comes in
1106+
this->lss_force_rebuild = true;
11051107
return rebuild_result::rr_appended_lines;
11061108
}
11071109

0 commit comments

Comments
 (0)