Skip to content

Commit 847f8c3

Browse files
committed
Prevent infinite loop deleting group snapshots
1 parent c5c0d15 commit 847f8c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/common-controller/groupsnapshot_controller_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func (ctrl *csiSnapshotCommonController) updateGroupSnapshot(ctx context.Context
262262

263263
// deleteGroupSnapshot runs in worker thread and handles "groupsnapshot deleted" event.
264264
func (ctrl *csiSnapshotCommonController) deleteGroupSnapshot(groupSnapshot *crdv1alpha1.VolumeGroupSnapshot) {
265-
_ = ctrl.snapshotStore.Delete(groupSnapshot)
265+
_ = ctrl.groupSnapshotStore.Delete(groupSnapshot)
266266
klog.V(4).Infof("group snapshot %q deleted", utils.GroupSnapshotKey(groupSnapshot))
267267

268268
driverName, err := ctrl.getGroupSnapshotDriverName(groupSnapshot)

0 commit comments

Comments
 (0)