aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_volume_balance.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-02-09 23:58:08 -0800
committerChris Lu <chris.lu@gmail.com>2021-02-09 23:58:08 -0800
commit770393a48c7c70084ae2f1bc510b8504d3b14aa4 (patch)
tree65f9b35c8be1ff211bcbb9d9f2d3864786b3ee5f /weed/shell/command_volume_balance.go
parent2bf5ea87d6788fc1b82d36ffaed42ce0345b955e (diff)
downloadseaweedfs-770393a48c7c70084ae2f1bc510b8504d3b14aa4.tar.xz
seaweedfs-770393a48c7c70084ae2f1bc510b8504d3b14aa4.zip
volume: add capability to change disk type when moving a volume
Diffstat (limited to 'weed/shell/command_volume_balance.go')
-rw-r--r--weed/shell/command_volume_balance.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_volume_balance.go b/weed/shell/command_volume_balance.go
index a57e07827..00308ebe8 100644
--- a/weed/shell/command_volume_balance.go
+++ b/weed/shell/command_volume_balance.go
@@ -332,7 +332,7 @@ func moveVolume(commandEnv *CommandEnv, v *master_pb.VolumeInformationMessage, f
}
fmt.Fprintf(os.Stdout, " moving %s volume %s%d %s => %s\n", v.DiskType, collectionPrefix, v.Id, fullNode.info.Id, emptyNode.info.Id)
if applyChange {
- return LiveMoveVolume(commandEnv.option.GrpcDialOption, needle.VolumeId(v.Id), fullNode.info.Id, emptyNode.info.Id, 5*time.Second)
+ return LiveMoveVolume(commandEnv.option.GrpcDialOption, needle.VolumeId(v.Id), fullNode.info.Id, emptyNode.info.Id, 5*time.Second, "")
}
return nil
}