Skip to content

Commit

Permalink
document the changes to the quit method regarding closing files.
Browse files Browse the repository at this point in the history
  • Loading branch information
guyboertje authored and jordansissel committed Dec 3, 2015
1 parent 9e9d3c6 commit ba71c06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/logstash/inputs/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ def add_path_meta(event, path)
end

def stop
@tail.quit if @tail # _sincedb_write is called implicitly
# in filewatch >= 0.6.7, quit will closes and forget all files
# but it will write their last read positions to since_db
# beforehand
@tail.quit if @tail
end
end # class LogStash::Inputs::File

0 comments on commit ba71c06

Please sign in to comment.