Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In case syncWatchersLoop() starts before Restore() is called, watchers already added at that moment are moved to s.synced by the loop. However, there is a broken logic that moves watchers from s.synced to s.uncyned without setting keyWatchers of the watcherGroup. Eventually syncWatchers() fails to pickup those watchers from s.unsynced and no events are sent to the watchers, because newWatcherBatch() called in the function uses wg.watcherSetByKey() internally that requires a proper keyWatchers value.
- Loading branch information