Skip to content

Commit

Permalink
input_chunk: update bytes counter for backoff logs (#2771)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Luo <[email protected]>
  • Loading branch information
JeffLuoo authored Nov 15, 2020
1 parent 6116421 commit 221140a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/flb_input_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ struct flb_input_chunk *flb_input_chunk_map(struct flb_input_instance *in,
void *chunk)
{
uint64_t chunk_routes_mask;
ssize_t bytes;

#ifdef FLB_HAVE_METRICS
int ret;
Expand Down Expand Up @@ -351,6 +352,9 @@ struct flb_input_chunk *flb_input_chunk_map(struct flb_input_instance *in,
}
ic->routes_mask = chunk_routes_mask;

bytes = flb_input_chunk_get_size(ic);
flb_input_chunk_update_output_instances(ic, bytes);

return ic;
}

Expand Down

0 comments on commit 221140a

Please sign in to comment.