Skip to content

Commit 44a2d0d

Browse files
plugin_proxy: Allow to execute flush callback on Golang side during hot-reloading (#9734)
Signed-off-by: Ankur Patel <[email protected]>
1 parent df3c3be commit 44a2d0d

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/flb_plugin_proxy.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ static void proxy_cb_flush(struct flb_event_chunk *event_chunk,
5050
(void) i_ins;
5151
(void) config;
5252

53-
/* To prevent flush callback executions, we need to check the
54-
* status of hot-reloading. The actual problem is: we don't have
55-
* pause procedure/mechanism for output plugin. For now, we just halt the
56-
* flush callback here during hot-reloading is in progress. */
57-
if (config->shutdown_by_hot_reloading == FLB_TRUE) {
58-
flb_trace("[GO] hot-reloading is in progress. Retry flushing");
59-
FLB_OUTPUT_RETURN(FLB_RETRY);
60-
}
61-
6253
#ifdef FLB_HAVE_PROXY_GO
6354
if (ctx->proxy->def->proxy == FLB_PROXY_GOLANG) {
6455
flb_trace("[GO] entering go_flush()");

0 commit comments

Comments
 (0)