Skip to content

Commit

Permalink
processor: allow processors to operate in the same input context
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Oct 28, 2024
1 parent f0d083b commit 3fd4ec0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/flb_processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -660,11 +660,13 @@ int flb_processor_run(struct flb_processor *proc,
return -1;
}

if (cur_buf != data) {
if (cur_buf != data && cur_buf != tmp_buf) {
cmt_destroy(cur_buf);
}

cur_buf = (void *)tmp_buf;
if (tmp_buf != NULL) {
cur_buf = tmp_buf;
}
}
}
else if (type == FLB_PROCESSOR_TRACES) {
Expand Down

0 comments on commit 3fd4ec0

Please sign in to comment.