Skip to content

Commit 4f6a931

Browse files
gman0m-k8s
andauthored
[manila-csi-plugin] ControllerExpandVolume: fix bad key for deleting from pendingVolumes (kubernetes#1667) (kubernetes#1675)
* [manila-csi-plugin] in ControllerExpandVolume fix bad key for pendingVolumes.Delete /closes kubernetes#1666 * [manila-csi-plugin] use share.Name to identify volumes in pendingVolumes.Delete Co-authored-by: Alexis Ries <[email protected]>
1 parent a6a2bea commit 4f6a931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/csi/manila/controllerserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ func (cs *controllerServer) ControllerExpandVolume(ctx context.Context, req *csi
445445
}
446446

447447
// Check for pending operations on this volume
448-
if _, isPending := pendingVolumes.LoadOrStore(req.GetVolumeId(), true); isPending {
448+
if _, isPending := pendingVolumes.LoadOrStore(share.Name, true); isPending {
449449
return nil, status.Errorf(codes.Aborted, "volume %s is already being processed", share.Name)
450450
}
451451
defer pendingVolumes.Delete(share.Name)

0 commit comments

Comments
 (0)