Skip to content

Commit 58f671b

Browse files
wackxuxing-yang
authored andcommitted
Add classListerSynced for WaitForCacheSync
1 parent 2e34d9b commit 58f671b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/snapshot_controller_base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ func (ctrl *csiSnapshotController) Run(workers int, stopCh <-chan struct{}) {
139139
glog.Infof("Starting CSI snapshotter")
140140
defer glog.Infof("Shutting CSI snapshotter")
141141

142-
if !cache.WaitForCacheSync(stopCh, ctrl.snapshotListerSynced, ctrl.contentListerSynced) {
142+
if !cache.WaitForCacheSync(stopCh, ctrl.snapshotListerSynced, ctrl.contentListerSynced, ctrl.classListerSynced) {
143143
glog.Errorf("Cannot sync caches")
144144
return
145145
}

0 commit comments

Comments
 (0)