Skip to content

Commit

Permalink
group.GetVolumeGroupSnapshot() fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpanic committed Oct 2, 2024
1 parent 7511fed commit b27bb46
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions internal/rbd/group/group_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,9 @@ func GetVolumeGroupSnapshot(
snapshots = append(snapshots, snap)
}

vgs := &volumeGroupSnapshot{
journal: j,
credentials: creds,
id: id,
name: attrs.GroupName,
clusterID: csiID.ClusterID,
monitors: mons,
pool: pool,
namespace: namespace,
snapshots: snapshots,
// all allocated snapshots need to be free'd at Destroy() time
snapshotsToFree: snapshots,
}
vgs.snapshots = snapshots
// all allocated snapshots need to be free'd at Destroy() time
vgs.snapshotsToFree = snapshots

cleanVGS = false
log.DebugLog(ctx, "GetVolumeGroupSnapshot(%s) returns %+v", id, *vgs)
Expand Down

0 comments on commit b27bb46

Please sign in to comment.