lib/fluent/plugin/s3_compressor_lzo.rb in fluent-plugin-s3-0.8.2 vs lib/fluent/plugin/s3_compressor_lzo.rb in fluent-plugin-s3-0.8.3
- old
+ new
@@ -17,10 +17,10 @@
def content_type
'application/x-lzop'.freeze
end
def compress(chunk, tmp)
- w = Tempfile.new("chunk-tmp")
+ w = Tempfile.new("chunk-tmp", @tmp_dir)
w.binmode
chunk.write_to(w)
w.close
# We don't check the return code because we can't recover lzop failure.