mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 07:07:25 +08:00
avoid unnecessary error message
fix https://github.com/chrislusf/seaweedfs/issues/1611
This commit is contained in:
@@ -122,7 +122,7 @@ func runCopy(cmd *Command, args []string) bool {
|
|||||||
expectedBucket := restPath[:strings.Index(restPath, "/")]
|
expectedBucket := restPath[:strings.Index(restPath, "/")]
|
||||||
if *copy.collection == "" {
|
if *copy.collection == "" {
|
||||||
*copy.collection = expectedBucket
|
*copy.collection = expectedBucket
|
||||||
} else {
|
} else if *copy.collection != expectedBucket {
|
||||||
fmt.Printf("destination %s uses collection \"%s\": unexpected collection \"%v\"\n", urlPath, expectedBucket, *copy.collection)
|
fmt.Printf("destination %s uses collection \"%s\": unexpected collection \"%v\"\n", urlPath, expectedBucket, *copy.collection)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user