Skip to content

Commit

Permalink
filter_multiline: Reset group metadata buffer on flush
Browse files Browse the repository at this point in the history
This commit resets the size of the metadata buffer on a flush.
It fixes continuous growth of this buffer over time.

Signed-off-by: Richard Treu <[email protected]>
  • Loading branch information
drbugfinder-work authored and edsiper committed Sep 27, 2024
1 parent 1d2fc97 commit 679216d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/multiline/flb_ml.c
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,7 @@ int flb_ml_flush_stream_group(struct flb_ml_parser *ml_parser,
}
msgpack_unpacked_destroy(&result);
group->mp_sbuf.size = 0;
group->mp_md_sbuf.size = 0;
}
else if (len > 0) {
/* Pack raw content as Fluent Bit record */
Expand Down

0 comments on commit 679216d

Please sign in to comment.