Skip to content

Commit 01b9826

Browse files
wackxuxing-yang
authored andcommitted
fix initializeCaches bug
1 parent 58f671b commit 01b9826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/snapshot_controller_base.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,8 @@ func (ctrl *csiSnapshotController) initializeCaches(snapshotLister storagelister
475475
}
476476
for _, content := range contentList {
477477
contentClone := content.DeepCopy()
478-
if _, err = ctrl.storeSnapshotUpdate(contentClone); err != nil {
479-
glog.Errorf("error updating volume snapshot cache: %v", err)
478+
if _, err = ctrl.storeContentUpdate(contentClone); err != nil {
479+
glog.Errorf("error updating volume snapshot content cache: %v", err)
480480
}
481481
}
482482

0 commit comments

Comments
 (0)