Skip to content

Commit

Permalink
input_chunk: fixed a corner case when records are dropped
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Nov 6, 2023
1 parent 0fe009a commit d1fec26
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/flb_input_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1537,10 +1537,8 @@ static int input_chunk_append_raw(struct flb_input_instance *in,
tag, tag_len,
in->config);

if (filtered_data_buffer != NULL) {
final_data_buffer = filtered_data_buffer;
final_data_size = filtered_data_size;
}
final_data_buffer = filtered_data_buffer;
final_data_size = filtered_data_size;
}

if (final_data_size > 0){
Expand Down

0 comments on commit d1fec26

Please sign in to comment.