aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-11-11 13:00:05 -0800
committerChris Lu <chris.lu@gmail.com>2020-11-11 13:00:05 -0800
commit745ee8d8f30d2913148b8f35d682feb48f6ab18a (patch)
treea5a727c1a07bcbf6d47469ce0215a1ecbbfef47d
parenta29abd8600208572acf15915758794c01ba21449 (diff)
downloadseaweedfs-745ee8d8f30d2913148b8f35d682feb48f6ab18a.tar.xz
seaweedfs-745ee8d8f30d2913148b8f35d682feb48f6ab18a.zip
avoid unnecessary error message
fix https://github.com/chrislusf/seaweedfs/issues/1611
-rw-r--r--weed/command/filer_copy.go2
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
}