diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-10-30 19:27:25 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-10-30 19:27:25 -0700 |
| commit | 24858507cca1429bb499c2bdb13236f9ef98d599 (patch) | |
| tree | 8d7479c2427627ae85adea220aee052165ab7bef /weed/shell | |
| parent | f5824f369c2bb29d6a50c0da55cc2b77c2f18630 (diff) | |
| download | seaweedfs-24858507cca1429bb499c2bdb13236f9ef98d599.tar.xz seaweedfs-24858507cca1429bb499c2bdb13236f9ef98d599.zip | |
rename API to avoid confusion
Diffstat (limited to 'weed/shell')
| -rw-r--r-- | weed/shell/command_remote_cache.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_remote_cache.go b/weed/shell/command_remote_cache.go index 2ae20d143..20a42dd3b 100644 --- a/weed/shell/command_remote_cache.go +++ b/weed/shell/command_remote_cache.go @@ -163,10 +163,10 @@ func (c *commandRemoteCache) cacheContentData(commandEnv *CommandEnv, writer io. remoteLocation := filer.MapFullPathToRemoteStorageLocation(localMountedDir, remoteMountedLocation, dir.Child(entry.Name)) - if err := filer.DownloadToLocal(commandEnv, remoteConf, remoteLocation, dir, entry); err != nil { - fmt.Fprintf(writer, "DownloadToLocal %+v: %v\n", remoteLocation, err) + if err := filer.CacheRemoteObjectToLocalCluster(commandEnv, remoteConf, remoteLocation, dir, entry); err != nil { + fmt.Fprintf(writer, "CacheRemoteObjectToLocalCluster %+v: %v\n", remoteLocation, err) if executionErr == nil { - executionErr = fmt.Errorf("DownloadToLocal %+v: %v\n", remoteLocation, err) + executionErr = fmt.Errorf("CacheRemoteObjectToLocalCluster %+v: %v\n", remoteLocation, err) } return } |
