From 745ee8d8f30d2913148b8f35d682feb48f6ab18a Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 11 Nov 2020 13:00:05 -0800 Subject: [PATCH] avoid unnecessary error message fix https://github.com/chrislusf/seaweedfs/issues/1611 --- weed/command/filer_copy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }