-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in_tail: use inode for key of TailWatchers
This allows unwatching to be completely handled in `refresh_wathcer`. `update_watcher` needed to unwatch because the key was path, but it caused log duplication in some cases. This key change fixes that problem. Note about the key of TailWatchers: Regardless of `follow_inodes`, both path or inode is acceptable for the key of `tails`. It is not wrong that the current logic uses `path` for the key. It just means that using inode as the key can solve the unwatching problem easily. perhaps we don't need to use different keys depending on `follow_inodes`. We can always use inode for the key. (Future work) Signed-off-by: Katuya Kawakami <[email protected]> Signed-off-by: Masaki Hatada <[email protected]> Co-authored-by: Daijiro Fukuda <[email protected]>
- Loading branch information
1 parent
77d7229
commit ce898dd
Showing
2 changed files
with
70 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters