Skip to content

Commit

Permalink
ml: clear last recently used parser to match next parser(fluent#5524)
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <[email protected]>
  • Loading branch information
nokute78 committed Jun 12, 2022
1 parent fb60e67 commit 2f01d60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/multiline/flb_ml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 2f01d60

Please sign in to comment.