From e86bdc79895cfa5b744a3b44ee9aa59ed5cd7a31 Mon Sep 17 00:00:00 2001 From: Vladimir Vivien Date: Mon, 26 Nov 2018 22:11:47 -0500 Subject: [PATCH] Forces fsnotify CREATE and REMOVE to occur serially --- pkg/kubelet/util/pluginwatcher/plugin_watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/util/pluginwatcher/plugin_watcher.go b/pkg/kubelet/util/pluginwatcher/plugin_watcher.go index 9116222cae..a9f8422edf 100644 --- a/pkg/kubelet/util/pluginwatcher/plugin_watcher.go +++ b/pkg/kubelet/util/pluginwatcher/plugin_watcher.go @@ -111,7 +111,7 @@ func (w *Watcher) Start() error { //TODO: Handle errors by taking corrective measures w.wg.Add(1) - go func() { + func() { defer w.wg.Done() if event.Op&fsnotify.Create == fsnotify.Create {