fix edge cases

This commit is contained in:
Chris Lu
2019-12-28 12:59:31 -08:00
parent 37b64a50b4
commit 8fbc0a9163
2 changed files with 4 additions and 3 deletions

View File

@@ -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)
}
}