aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_move.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-04-20 20:31:35 -0700
committerChris Lu <chris.lu@gmail.com>2019-04-20 20:31:35 -0700
commit5f3d0e33a15f381fd0b180c21e9a2d43e8d45643 (patch)
treec151591c87d29b4df33a2c006d98243a7f6481c8 /weed/shell/command_volume_move.go
parentd06d3c57d4afec647015cf96bfc57035fe784101 (diff)
downloadseaweedfs-5f3d0e33a15f381fd0b180c21e9a2d43e8d45643.tar.xz
seaweedfs-5f3d0e33a15f381fd0b180c21e9a2d43e8d45643.zip
shell: add commands volume.copy volume.delete volume.mount volume.unmount
Diffstat (limited to 'weed/shell/command_volume_move.go')
-rw-r--r--weed/shell/command_volume_move.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_volume_move.go b/weed/shell/command_volume_move.go
index 354c16146..03b1446e6 100644
--- a/weed/shell/command_volume_move.go
+++ b/weed/shell/command_volume_move.go
@@ -118,9 +118,9 @@ func tailVolume(ctx context.Context, grpcDialOption grpc.DialOption, volumeId ne
func deleteVolume(ctx context.Context, grpcDialOption grpc.DialOption, volumeId needle.VolumeId, sourceVolumeServer string) (err error) {
return operation.WithVolumeServerClient(sourceVolumeServer, grpcDialOption, func(volumeServerClient volume_server_pb.VolumeServerClient) error {
- _, unmountErr := volumeServerClient.VolumeDelete(ctx, &volume_server_pb.VolumeDeleteRequest{
+ _, deleteErr := volumeServerClient.VolumeDelete(ctx, &volume_server_pb.VolumeDeleteRequest{
VolumeId: uint32(volumeId),
})
- return unmountErr
+ return deleteErr
})
}