From ee3205a00f6094ac9ed1c7a0a396cf55c63d148a Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sun, 12 Jun 2022 20:18:04 +0900 Subject: [PATCH] ml: clear last recently used parser to match next parser(#5524) Signed-off-by: Takahiro Yamashita --- src/multiline/flb_ml.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/multiline/flb_ml.c b/src/multiline/flb_ml.c index 5521f4f116c..befc2a42ca1 100644 --- a/src/multiline/flb_ml.c +++ b/src/multiline/flb_ml.c @@ -712,6 +712,8 @@ int flb_ml_append(struct flb_ml *ml, uint64_t stream_id, flb_ml_flush_parser_instance(ml, lru_parser, lru_parser->last_stream_id); + /* clear last recently used parser to match new parser */ + lru_parser = NULL; } } @@ -822,6 +824,8 @@ int flb_ml_append_object(struct flb_ml *ml, uint64_t stream_id, flb_ml_flush_parser_instance(ml, lru_parser, lru_parser->last_stream_id); + /* clear last recently used parser to match new parser */ + lru_parser = NULL; } }