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 17, 2022
1 parent 6cd8b85 commit 5b0d37e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/multiline/flb_ml.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,13 @@ int flb_ml_append(struct flb_ml *ml, uint64_t stream_id,
}
}
else if (lru_parser && lru_parser->last_stream_id > 0) {
/*
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 @@ -819,9 +823,13 @@ int flb_ml_append_object(struct flb_ml *ml, uint64_t stream_id,
}
}
else if (lru_parser && lru_parser->last_stream_id > 0) {
/*
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 5b0d37e

Please sign in to comment.