aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/read_remote.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer/read_remote.go')
-rw-r--r--weed/filer/read_remote.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/read_remote.go b/weed/filer/read_remote.go
index 58639024b..a3fb48ae0 100644
--- a/weed/filer/read_remote.go
+++ b/weed/filer/read_remote.go
@@ -25,9 +25,9 @@ func MapRemoteStorageLocationPathToFullPath(localMountedDir util.FullPath, remot
return localMountedDir.Child(remoteLocationPath[len(remoteMountedLocation.Path):])
}
-func DownloadToLocal(filerClient filer_pb.FilerClient, remoteConf *remote_pb.RemoteConf, remoteLocation *remote_pb.RemoteStorageLocation, parent util.FullPath, entry *filer_pb.Entry) error {
+func CacheRemoteObjectToLocalCluster(filerClient filer_pb.FilerClient, remoteConf *remote_pb.RemoteConf, remoteLocation *remote_pb.RemoteStorageLocation, parent util.FullPath, entry *filer_pb.Entry) error {
return filerClient.WithFilerClient(func(client filer_pb.SeaweedFilerClient) error {
- _, err := client.DownloadToLocal(context.Background(), &filer_pb.DownloadToLocalRequest{
+ _, err := client.CacheRemoteObjectToLocalCluster(context.Background(), &filer_pb.CacheRemoteObjectToLocalClusterRequest{
Directory: string(parent),
Name: entry.Name,
})