-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FileWatching: ensure PollingFileWatcher reports StatStruct correctly
Previously, we might miss an prev=>current update event while waiting in the workqueue. Now a careful application can ensure it always has the most up-to-date stat, without needing to do an extra call to Stat after the notify. Obviously, you still must be careful to initialize this before attempting the initial operation (to ensure the previous Stat is the intended one).
- Loading branch information
Showing
2 changed files
with
38 additions
and
31 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