Skip to content

Commit

Permalink
task: remove guard around total_events
Browse files Browse the repository at this point in the history
`total_events` is expected to be set even in scenarios where
`FLB_HAVE_METRICS` is not defined. Remove the guard around actually
setting that value from the input chunk.

Signed-off-by: braydonk <[email protected]>
  • Loading branch information
braydonk authored and edsiper committed Nov 28, 2023
1 parent 1a8dd39 commit 949a0b1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/flb_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,7 @@ struct flb_task *flb_task_create(uint64_t ref_id,
return NULL;
}

#ifdef FLB_HAVE_METRICS
total_events = ((struct flb_input_chunk *) ic)->total_records;
#endif

/* event chunk */
evc = flb_event_chunk_create(ic->event_type,
Expand Down

0 comments on commit 949a0b1

Please sign in to comment.