lib/fluent/plugin/buf_file.rb in fluentd-0.10.34 vs lib/fluent/plugin/buf_file.rb in fluentd-0.10.35
- old
+ new
@@ -21,10 +21,10 @@
class FileBufferChunk < BufferChunk
def initialize(key, path, unique_id, mode="a+")
super(key)
@path = path
@unique_id = unique_id
- @file = File.open(@path, mode)
+ @file = File.open(@path, mode, DEFAULT_FILE_PERMISSION)
@file.sync = true
@size = @file.stat.size
end
attr_reader :unique_id