@ -214,6 +214,9 @@ func (vs *VolumeServer) CopyFile(req *volume_server_pb.CopyFileRequest, stream v
}
if fileName == "" {
if req.IgnoreSourceFileNotFound {
return nil
return fmt.Errorf("CopyFile not found ec volume id %d", req.VolumeId)
@ -200,9 +200,7 @@ func (vs *VolumeServer) VolumeEcShardsDelete(ctx context.Context, req *volume_se
if err := os.Remove(baseFilename + ".ecj"); err != nil {
return nil, err
if err := os.Remove(baseFilename + ".vif"); err != nil {
os.Remove(baseFilename + ".vif")
return &volume_server_pb.VolumeEcShardsDeleteResponse{}, nil