Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

shell: fix volume.copy

Chris Lu64a9a0e10489
diff --git a/weed/shell/command_volume_copy.go b/weed/shell/command_volume_copy.go
index b682c4e131..8f14e25b34 100644
--- a/weed/shell/command_volume_copy.go
+++ b/weed/shell/command_volume_copy.go
@@ -32,9 +32,9 @@ func (c *commandVolumeCopy) Help() string {
func (c *commandVolumeCopy) Do(args []string, commandEnv *commandEnv, writer io.Writer) (err error) {
- if len(args) != 2 {
+ if len(args) != 3 {
fmt.Fprintf(writer, "received args: %+v\n", args)
- return fmt.Errorf("need 2 args of <source volume server host:port> <target volume server host:port> <volume id>")
+ return fmt.Errorf("need 3 args of <source volume server host:port> <target volume server host:port> <volume id>")
}
sourceVolumeServer, targetVolumeServer, volumeIdString := args[0], args[1], args[2]