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

Use size instead of #2584

Merged
merged 1 commit into from
Aug 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/fluent/plugin/buffer/file_single_chunk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def create_new_chunk(path, metadata, perm)
# If other cases are possible, we will change erorr handling with proper classes.
raise BufferOverflowError, "can't create buffer file for #{path}. Stop creating buffer files: error = #{e}"
end

@state = :unstaged
@bytesize = 0
@commit_position = @chunk.pos # must be 0
Expand Down Expand Up @@ -306,7 +306,7 @@ def load_existing_enqueued_chunk(path)

@state = :queued
@bytesize = @chunk.size
@commit_position = @chunk.pos
@commit_position = @chunk.size
end
end
end
Expand Down