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

in_tail: Explicitly update position to 0 when the file is truncated #1791

Merged
merged 1 commit into from
Dec 13, 2017

Conversation

mururu
Copy link
Member

@mururu mururu commented Dec 13, 2017

Current in_tail already reads the file from head when truncated,
but the position is updated to stat.size. Basically it is misleading and
may cause unexpected behaviour.

Current in_tail already reads the file from head when truncated,
but the position is updated to stat.size. Basically it is misleading and
may cause unexpected behaviour.
@repeatedly repeatedly merged commit d699681 into v0.12 Dec 13, 2017
@repeatedly
Copy link
Member

Good catch!

@mururu mururu deleted the position-0-when-truncated branch December 14, 2017 02:30
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.

2 participants