Merge pull request #71440 from vladimirvivien/csi-registration-annotation-fix

Fix for race condition caused by concurrent fsnotify (CREATE and REMOVE) in kubelet/plugin_watcher.go
pull/58/head
k8s-ci-robot 2018-11-27 17:08:09 -08:00 committed by GitHub
commit 7b24399fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {