Skip to content

Commit

Permalink
task: expose map_get_task_id to add a check in engine_dispatch
Browse files Browse the repository at this point in the history
Signed-off-by: seblaz <[email protected]>
  • Loading branch information
seblaz authored and edsiper committed Apr 8, 2024
1 parent cf3e53c commit 251c134
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/fluent-bit/flb_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ struct flb_task_enqueued {

int flb_task_running_count(struct flb_config *config);
int flb_task_running_print(struct flb_config *config);
int flb_task_map_get_task_id(struct flb_config *config);

struct flb_task *flb_task_create(uint64_t ref_id,
const char *buf,
Expand Down
4 changes: 4 additions & 0 deletions src/flb_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ int flb_task_running_print(struct flb_config *config)
return 0;
}

int flb_task_map_get_task_id(struct flb_config *config) {
return map_get_task_id(config);
}

/* Create an engine task to handle the output plugin flushing work */
struct flb_task *flb_task_create(uint64_t ref_id,
const char *buf,
Expand Down

0 comments on commit 251c134

Please sign in to comment.