Browse Source

mount: deletion ignore old vid

pull/1189/head
Chris Lu 5 years ago
parent
commit
04019aa161
  1. 5
      weed/filesys/wfs_deletion.go

5
weed/filesys/wfs_deletion.go

@ -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,

Loading…
Cancel
Save