mount: deletion ignore old vid

This commit is contained in:
Chris Lu 2020-01-19 12:07:26 -08:00
parent 6a40c688e0
commit 04019aa161

View file

@ -50,7 +50,10 @@ func deleteFileIds(ctx context.Context, grpcDialOption grpc.DialOption, client f
VolumeId: vid, VolumeId: vid,
Locations: nil, Locations: nil,
} }
locations := resp.LocationsMap[vid] locations, found := resp.LocationsMap[vid]
if !found {
continue
}
for _, loc := range locations.Locations { for _, loc := range locations.Locations {
lr.Locations = append(lr.Locations, operation.Location{ lr.Locations = append(lr.Locations, operation.Location{
Url: loc.Url, Url: loc.Url,