Skip to content

Commit

Permalink
in_tail: Restore rotated target info line
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Dec 11, 2020
1 parent 17b5d82 commit a106a03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fluent/plugin/in_tail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ def update_watcher(target_info, pe)
end
end

rotated_tw = @tails[target_info]
rotated_target_info = TargetInfo.new(target_info.path, pe.read_inode)
rotated_tw = @tails[rotated_target_info]
new_target_info = target_info.dup

if @follow_inodes
Expand Down

0 comments on commit a106a03

Please sign in to comment.