Skip to content

Commit

Permalink
Prevent infinite loop deleting group snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoce committed Nov 24, 2024
1 parent c5c0d15 commit 372f0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/common-controller/groupsnapshot_controller_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func (ctrl *csiSnapshotCommonController) updateGroupSnapshot(ctx context.Context

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

driverName, err := ctrl.getGroupSnapshotDriverName(groupSnapshot)
Expand Down

0 comments on commit 372f0a0

Please sign in to comment.