Skip to content
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

scratch-buffers: fix 'global.scratch_buffers_count.queued' bug #3355

Merged
merged 2 commits into from
Jul 15, 2020

Conversation

gaborznagy
Copy link
Collaborator

Due to some bug, the global.scratch_buffers_count.queued could shown an invalid value (e.g. 2^32 value, while the actual usage was just decreased to 0).

This bug only affected the stats_counter value, not the actual memory usage (i.e. memory usage was fine before).

@gaborznagy gaborznagy force-pushed the fix-scratch-buffer-stats branch from 7949ae1 to a76d922 Compare July 12, 2020 17:13
@kira-syslogng
Copy link
Contributor

Build SUCCESS

MrAnno
MrAnno previously approved these changes Jul 12, 2020
Copy link
Collaborator

@Kokan Kokan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just left a few note. if you do not want to resolve these notes, just reply so and I can approve and merge as is.

lib/tests/test_scratch_buffers.c Outdated Show resolved Hide resolved
lib/tests/test_scratch_buffers.c Outdated Show resolved Hide resolved
lib/tests/test_scratch_buffers.c Outdated Show resolved Hide resolved
@lbudai lbudai added this to the syslog-ng-3.29 milestone Jul 13, 2020
@gaborznagy gaborznagy force-pushed the fix-scratch-buffer-stats branch from a76d922 to b939fd7 Compare July 14, 2020 08:55
@kira-syslogng
Copy link
Contributor

Build FAILURE

MrAnno
MrAnno previously approved these changes Jul 14, 2020
@kira-syslogng
Copy link
Contributor

Build SUCCESS

unary minus operator should not be used on unsigned variables (GPtrArray->len).

Signed-off-by: Gabor Nagy <[email protected]>
@gaborznagy gaborznagy force-pushed the fix-scratch-buffer-stats branch from 9ffcb72 to 34b99c4 Compare July 15, 2020 07:53
@kira-syslogng
Copy link
Contributor

Build SUCCESS

@gaborznagy gaborznagy force-pushed the fix-scratch-buffer-stats branch from 34b99c4 to 6c1911c Compare July 15, 2020 08:26
@kira-syslogng
Copy link
Contributor

Build SUCCESS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants