|
@ -198,7 +198,7 @@ func (l *DiskLocation) deleteEcVolumeById(vid needle.VolumeId) (e error) { |
|
|
// Add write lock since we're modifying the ecVolumes map
|
|
|
// Add write lock since we're modifying the ecVolumes map
|
|
|
l.ecVolumesLock.Lock() |
|
|
l.ecVolumesLock.Lock() |
|
|
defer l.ecVolumesLock.Unlock() |
|
|
defer l.ecVolumesLock.Unlock() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ecVolume, ok := l.ecVolumes[vid] |
|
|
ecVolume, ok := l.ecVolumes[vid] |
|
|
if !ok { |
|
|
if !ok { |
|
|
return |
|
|
return |
|
|