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

fix a bug where nil line buffer would be put back #880

Merged
merged 1 commit into from
Aug 13, 2019

Conversation

cyriltovena
Copy link
Contributor

I was working on a blog post and found an edge case where a nil line buffer would be place back into the buffer pool.

This happens when closing the gzip iterator without using it. (eg. we reached the limit of line we wants so we close all remaining iterator, some may have not been used.)

Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM!

@slim-bean slim-bean merged commit a407099 into grafana:master Aug 13, 2019
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.

None yet

2 participants