-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
groupingby: add missing "discarded" counter #1748
Conversation
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
modules/dbparser/groupingby.c
Outdated
@@ -387,6 +387,9 @@ grouping_by_init(LogPipe *s) | |||
GroupingBy *self = (GroupingBy *) s; | |||
GlobalConfig *cfg = log_pipe_get_config(s); | |||
|
|||
if (!log_parser_init_method(s)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not grouping-by parser call StatefulParser's init method instead?
it should. thanks for the comment.
…--
Bazsi
On Mon, Nov 6, 2017 at 9:40 AM, Gábor Nagy ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In modules/dbparser/groupingby.c
<#1748 (comment)>:
> @@ -387,6 +387,9 @@ grouping_by_init(LogPipe *s)
GroupingBy *self = (GroupingBy *) s;
GlobalConfig *cfg = log_pipe_get_config(s);
+ if (!log_parser_init_method(s))
Should not grouping-by parser call StatefulParser's init method instead?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1748 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AArldocF_YLR9rRif2YcJyKPtQrsvtUMks5szsYWgaJpZM4QSSHD>
.
|
This function is to pair up with log_parser_init_method(), right now it is empty but can be used to tear down state that log_parser_init_method() sets up. Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
f24f438
to
2ddd812
Compare
due to @gaborznagy's comment I have now added a broader refactor.
|
Build FAILURE, $TEST_DESC_COMMENT |
This patch adds log_parser_init_method() to the init() call chain, where it was missing. This fixes #1738, as well as any potential missing initialization problem in the future. Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
2ddd812
to
232b8c4
Compare
Build SUCCESS, the tests were executed on test branch: master and test suite: functions |
@kira-syslogng test this please test branch=pzolee-grouping-by-parser; |
Build SUCCESS, the tests were executed on test branch: pzolee-grouping-by-parser and test suite: functions |
This patch adds log_parser_init_method() to the init() call chain,
where it was missing. This fixes #1738, as well as any potential
missing initialization problem in the future.
Signed-off-by: Balazs Scheidler balazs.scheidler@balabit.com