| commit | 2d14857c14266c3f7249b9c1aa92f582d12b6e52 | [log] [tgz] |
|---|---|---|
| author | Peter Potrebic <potrebic@gmail.com> | Thu Oct 25 17:29:05 2012 -0700 |
| committer | Hannu Valtonen <hannu.valtonen@ohmu.fi> | Thu Jun 13 08:26:54 2013 +0300 |
| tree | b8e0e346c4a1a83cd45f966e6faa81ed8770efce | |
| parent | b1e027117d9d159d5d3f7da7808e536a8029da8b [diff] |
Watchdog (on Windows) would create bad FS changed events streams
Code was stripping duplicate events from its internal queue. Example:
Create X, Delete X, Create X, Edit X
Would be filtered to
Create X, Delete X, Edit X
because the second "Create X" was still in the queue... thus it was
dropped. But that isn't a valid event stream. Can't 'Edit' a file that
doesn't exist.
Fixed by changing to use a queue that only dropped duplicate consecutive
events.