mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix edge cases
This commit is contained in:
parent
37b64a50b4
commit
8fbc0a9163
|
@ -214,6 +214,9 @@ func (vs *VolumeServer) CopyFile(req *volume_server_pb.CopyFileRequest, stream v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if fileName == "" {
|
if fileName == "" {
|
||||||
|
if req.IgnoreSourceFileNotFound {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return fmt.Errorf("CopyFile not found ec volume id %d", req.VolumeId)
|
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 {
|
if err := os.Remove(baseFilename + ".ecj"); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if err := os.Remove(baseFilename + ".vif"); err != nil {
|
os.Remove(baseFilename + ".vif")
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return &volume_server_pb.VolumeEcShardsDeleteResponse{}, nil
|
return &volume_server_pb.VolumeEcShardsDeleteResponse{}, nil
|
||||||
|
|
Loading…
Reference in a new issue