fix initializeCaches bug

This commit is contained in:
xushiwei
2018-11-02 14:52:58 +08:00
parent 7fdc9ddbbe
commit a32313cccb

View File

@@ -475,8 +475,8 @@ func (ctrl *csiSnapshotController) initializeCaches(snapshotLister storagelister
}
for _, content := range contentList {
contentClone := content.DeepCopy()
if _, err = ctrl.storeSnapshotUpdate(contentClone); err != nil {
glog.Errorf("error updating volume snapshot cache: %v", err)
if _, err = ctrl.storeContentUpdate(contentClone); err != nil {
glog.Errorf("error updating volume snapshot content cache: %v", err)
}
}