|
@ -272,7 +272,7 @@ func (vs *VolumeServer) VolumeEcShardRead(req *volume_server_pb.VolumeEcShardRea |
|
|
|
|
|
|
|
|
if req.FileKey != 0 { |
|
|
if req.FileKey != 0 { |
|
|
_, size, _ := ecVolume.FindNeedleFromEcx(types.Uint64ToNeedleId(req.FileKey)) |
|
|
_, size, _ := ecVolume.FindNeedleFromEcx(types.Uint64ToNeedleId(req.FileKey)) |
|
|
if size == types.TombstoneFileSize { |
|
|
|
|
|
|
|
|
if size.IsDeleted() { |
|
|
return stream.Send(&volume_server_pb.VolumeEcShardReadResponse{ |
|
|
return stream.Send(&volume_server_pb.VolumeEcShardReadResponse{ |
|
|
IsDeleted: true, |
|
|
IsDeleted: true, |
|
|
}) |
|
|
}) |
|
@ -340,7 +340,7 @@ func (vs *VolumeServer) VolumeEcBlobDelete(ctx context.Context, req *volume_serv |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, fmt.Errorf("locate in local ec volume: %v", err) |
|
|
return nil, fmt.Errorf("locate in local ec volume: %v", err) |
|
|
} |
|
|
} |
|
|
if size == types.TombstoneFileSize { |
|
|
|
|
|
|
|
|
if size.IsDeleted() { |
|
|
return resp, nil |
|
|
return resp, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|