From 2b279bfea6e1c6ac1be9f466fdf00e66f7770a00 Mon Sep 17 00:00:00 2001 From: Ankur Patel Date: Mon, 16 Dec 2024 21:49:48 +0530 Subject: [PATCH] plugin_proxy: Allow to execute flush callback on Golang side during hot-reloading Signed-off-by: Ankur Patel --- src/flb_plugin_proxy.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/flb_plugin_proxy.c b/src/flb_plugin_proxy.c index c71f783d488..f0d9eb39993 100644 --- a/src/flb_plugin_proxy.c +++ b/src/flb_plugin_proxy.c @@ -50,15 +50,6 @@ static void proxy_cb_flush(struct flb_event_chunk *event_chunk, (void) i_ins; (void) config; - /* To prevent flush callback executions, we need to check the - * status of hot-reloading. The actual problem is: we don't have - * pause procedure/mechanism for output plugin. For now, we just halt the - * flush callback here during hot-reloading is in progress. */ - if (config->shutdown_by_hot_reloading == FLB_TRUE) { - flb_trace("[GO] hot-reloading is in progress. Retry flushing"); - FLB_OUTPUT_RETURN(FLB_RETRY); - } - #ifdef FLB_HAVE_PROXY_GO if (ctx->proxy->def->proxy == FLB_PROXY_GOLANG) { flb_trace("[GO] entering go_flush()");