Skip to content

Commit

Permalink
Merge pull request #2620 from berlincount/buf_file_compress_master
Browse files Browse the repository at this point in the history
Allow uncompressing buffer files during restore
  • Loading branch information
repeatedly authored Sep 18, 2019
2 parents 9a7d512 + 054ea9e commit dc20204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fluent/plugin/buf_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def resume
end

begin
chunk = Fluent::Plugin::Buffer::FileChunk.new(m, path, mode) # file chunk resumes contents of metadata
chunk = Fluent::Plugin::Buffer::FileChunk.new(m, path, mode, compress: @compress) # file chunk resumes contents of metadata
rescue Fluent::Plugin::Buffer::FileChunk::FileChunkError => e
handle_broken_files(path, mode, e)
next
Expand Down
2 changes: 1 addition & 1 deletion lib/fluent/plugin/buf_file_single.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def resume
end

begin
chunk = Fluent::Plugin::Buffer::FileSingleChunk.new(m, path, mode, @key_in_path)
chunk = Fluent::Plugin::Buffer::FileSingleChunk.new(m, path, mode, @key_in_path, compress: @compress)
chunk.restore_size(@chunk_format) if @calc_num_records
rescue Fluent::Plugin::Buffer::FileSingleChunk::FileChunkError => e
handle_broken_files(path, mode, e)
Expand Down

0 comments on commit dc20204

Please sign in to comment.