Skip to content

Commit 2d3ce50

Browse files
committed
task: update routing mask checks to use router context
Replace config-based mask checks with router-based calls. Ensure mask evaluation uses current router state. Signed-off-by: Eduardo Silva <[email protected]>
1 parent d05826f commit 2d3ce50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flb_task.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ struct flb_task *flb_task_create(uint64_t ref_id,
734734
if (task_ic->routes_mask) {
735735
if (flb_routes_mask_get_bit(task_ic->routes_mask,
736736
o_ins->id,
737-
o_ins->config) == 0) {
737+
o_ins->config->router) == 0) {
738738
continue;
739739
}
740740
}
@@ -790,7 +790,7 @@ struct flb_task *flb_task_create(uint64_t ref_id,
790790

791791
if (flb_routes_mask_get_bit(task_ic->routes_mask,
792792
o_ins->id,
793-
o_ins->config) != 0) {
793+
o_ins->config->router) != 0) {
794794
route = flb_calloc(1, sizeof(struct flb_task_route));
795795
if (!route) {
796796
flb_errno();

0 commit comments

Comments
 (0)