From a32313cccbe5d421ce70acd9e52f8ec4fb8e7b03 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Fri, 2 Nov 2018 14:52:58 +0800 Subject: [PATCH] fix initializeCaches bug --- pkg/controller/snapshot_controller_base.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/snapshot_controller_base.go b/pkg/controller/snapshot_controller_base.go index 68c7829f..198a0f74 100644 --- a/pkg/controller/snapshot_controller_base.go +++ b/pkg/controller/snapshot_controller_base.go @@ -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) } }