@@ -72,7 +72,7 @@ func (ns *GCENodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePub
72
72
if volumeCapability == nil {
73
73
return nil , status .Error (codes .InvalidArgument , "NodePublishVolume Volume Capability must be provided" )
74
74
}
75
-
75
+
76
76
if acquired := ns .volumeLocks .TryAcquire (volumeID ); ! acquired {
77
77
return nil , status .Errorf (codes .Aborted , common .VolumeOperationAlreadyExistsFmt , volumeID )
78
78
}
@@ -301,7 +301,7 @@ func (ns *GCENodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStage
301
301
if err != nil {
302
302
return nil , status .Error (codes .Internal ,
303
303
fmt .Sprintf ("Failed to format and mount device from (%q) to (%q) with fstype (%q) and options (%q): %v" ,
304
- devicePath , stagingTargetPath , fstype , options , err ))e
304
+ devicePath , stagingTargetPath , fstype , options , err ))
305
305
}
306
306
307
307
return & csi.NodeStageVolumeResponse {}, nil
@@ -320,7 +320,7 @@ func (ns *GCENodeServer) NodeUnstageVolume(ctx context.Context, req *csi.NodeUns
320
320
return nil , status .Error (codes .InvalidArgument , "NodeUnstageVolume Staging Target Path must be provided" )
321
321
}
322
322
323
- if acquired := ns .volumes .TryAcquire (volumeID ); ! acquired {
323
+ if acquired := ns .volumeLocks .TryAcquire (volumeID ); ! acquired {
324
324
return nil , status .Error (codes .Aborted , fmt .Sprintf ("An operation with the given Volume ID %s already exists" , volumeID ))
325
325
}
326
326
defer ns .volumeLocks .Release (volumeID )
0 commit comments