diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-04-20 20:48:07 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-04-20 20:48:07 -0700 |
| commit | 64a9a0e10489b216539ece86583d2313e3dca333 (patch) | |
| tree | 6ef0ac41d755e6f202cf81c151dfed42f2aaf273 /weed/shell/command_volume_copy.go | |
| parent | 5f3d0e33a15f381fd0b180c21e9a2d43e8d45643 (diff) | |
| download | seaweedfs-64a9a0e10489b216539ece86583d2313e3dca333.tar.xz seaweedfs-64a9a0e10489b216539ece86583d2313e3dca333.zip | |
shell: fix volume.copy
Diffstat (limited to 'weed/shell/command_volume_copy.go')
| -rw-r--r-- | weed/shell/command_volume_copy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_copy.go b/weed/shell/command_volume_copy.go index b682c4e13..8f14e25b3 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] |
