lib/watchaggregator: Speedup propagation of removals (fixes #4953) (#4955)

This commit is contained in:
Simon Frei
2018-05-26 11:08:23 +02:00
committed by Audrius Butkevicius
parent eb31be0432
commit a83176c77a
3 changed files with 170 additions and 105 deletions

View File

@@ -107,6 +107,11 @@ const (
Mixed // Should probably not be necessary to be used in filesystem interface implementation
)
// Merge returns Mixed, except if evType and other are the same and not Mixed.
func (evType EventType) Merge(other EventType) EventType {
return evType | other
}
func (evType EventType) String() string {
switch {
case evType == NonRemove: