diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2020-11-13 15:34:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-13 15:34:38 +0800 |
| commit | e0d5207ed9ff6350e83497586ac9859d841a711a (patch) | |
| tree | 5fa024e1108a53af325a79f09c0aadd63b41fb3b /weed/command/filer_copy.go | |
| parent | a38efe2e7baf34cb074c9db095f7db50de0fa156 (diff) | |
| parent | a2962604ad0bf83b26c692c72ddd40e648fb804d (diff) | |
| download | seaweedfs-e0d5207ed9ff6350e83497586ac9859d841a711a.tar.xz seaweedfs-e0d5207ed9ff6350e83497586ac9859d841a711a.zip | |
Merge pull request #36 from chrislusf/master
sync
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 9afa65d23..322e5418d 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -122,7 +122,7 @@ func runCopy(cmd *Command, args []string) bool { expectedBucket := restPath[:strings.Index(restPath, "/")] if *copy.collection == "" { *copy.collection = expectedBucket - } else { + } else if *copy.collection != expectedBucket { fmt.Printf("destination %s uses collection \"%s\": unexpected collection \"%v\"\n", urlPath, expectedBucket, *copy.collection) return true } |
