mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
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
This commit is contained in:
commit
7b24399fb5
@ -111,7 +111,7 @@ func (w *Watcher) Start() error {
|
|||||||
//TODO: Handle errors by taking corrective measures
|
//TODO: Handle errors by taking corrective measures
|
||||||
|
|
||||||
w.wg.Add(1)
|
w.wg.Add(1)
|
||||||
go func() {
|
func() {
|
||||||
defer w.wg.Done()
|
defer w.wg.Done()
|
||||||
|
|
||||||
if event.Op&fsnotify.Create == fsnotify.Create {
|
if event.Op&fsnotify.Create == fsnotify.Create {
|
||||||
|
Loading…
Reference in New Issue
Block a user