Skip to content

Commit

Permalink
Merge pull request #2584 from ganmacs/use-size
Browse files Browse the repository at this point in the history
Use size instead of
  • Loading branch information
repeatedly authored Aug 21, 2019
2 parents a9ba3f8 + 87944b8 commit 010fdd6
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 010fdd6

Please sign in to comment.