Skip to content

Commit

Permalink
mut bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HammadB committed Mar 24, 2024
1 parent b832d17 commit 80a177c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rust/worker/src/execution/operators/pull_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ impl Operator<PullLogsInput, PullLogsOutput> for PullLogsOperator {
offset += batch_size as i64;
result.append(&mut logs);

// We used a a timestamp and we didn't get a full batch, so we are done
if input.end_timestamp.is_some() && logs.len() < batch_size as usize {
// We used a a timestamp and we didn't get a full batch, so we have retrieved
// the last batch of logs relevant to our query
if input.end_timestamp.is_some() && num_records_read < batch_size as usize {
break;
}

Expand Down

0 comments on commit 80a177c

Please sign in to comment.