Skip to content

Commit 7dc9a91

Browse files
committed
router: check for new input routes
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
1 parent a2cd096 commit 7dc9a91

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/flb_router.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,15 @@ int flb_router_io_set(struct flb_config *config)
256256
}
257257
}
258258

259+
/* Apply new router configuration if available */
260+
if (!cfl_list_is_empty(&config->input_routes)) {
261+
flb_debug("[router] new router configuration found, applying...");
262+
if (flb_router_apply_config(config) == -1) {
263+
flb_error("[router] failed to apply new router configuration");
264+
return -1;
265+
}
266+
}
267+
259268
return 0;
260269
}
261270

0 commit comments

Comments
 (0)