Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vm: load programs right after watcher.Create event
watcher.Update event might not be received when a new file is added into progs directory. For example, when RPM is installing a package, it doesn't change mtime on the files, thus watcher.Update event is never received on the actual program file and the programs installed by RPM are never loaded. I0627 12:11:59.401242 840953 log_watcher.go:89] watcher event "/etc/mtail/messages.mtail;5b3354df": RENAME I0627 12:11:59.401267 840953 log_watcher.go:89] watcher event "/etc/mtail/messages.mtail": CREATE Fix this by loading programs right after watcher.Create event. Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
- Loading branch information