From 221140ab0eff53e1ba7d9886b3721cc2f27757c7 Mon Sep 17 00:00:00 2001 From: Jeff Luo <40296741+JeffLuoo@users.noreply.github.com> Date: Sat, 14 Nov 2020 23:22:05 -0500 Subject: [PATCH] input_chunk: update bytes counter for backoff logs (#2771) Signed-off-by: Jeff Luo --- src/flb_input_chunk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/flb_input_chunk.c b/src/flb_input_chunk.c index 58ada38b756..ac0285c96af 100644 --- a/src/flb_input_chunk.c +++ b/src/flb_input_chunk.c @@ -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; @@ -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; }