diff options
| author | bingoohuang <bingoo.huang@gmail.com> | 2021-03-01 09:22:46 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-01 09:22:46 +0800 |
| commit | eb65cbf0025e4bfbfe6359a5ba5bfbd094c3e81d (patch) | |
| tree | 7aa6c966d0d36a6cd4d2c16735b6b265527af142 /weed/shell/command_ec_decode.go | |
| parent | 0cfbe8f059c9f97f606e7c76f77aa8a8a8c97765 (diff) | |
| parent | e52c94640e9898be5308a77867ecea5ef1567c5b (diff) | |
| download | seaweedfs-eb65cbf0025e4bfbfe6359a5ba5bfbd094c3e81d.tar.xz seaweedfs-eb65cbf0025e4bfbfe6359a5ba5bfbd094c3e81d.zip | |
Merge pull request #5 from chrislusf/master
sync
Diffstat (limited to 'weed/shell/command_ec_decode.go')
| -rw-r--r-- | weed/shell/command_ec_decode.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_ec_decode.go b/weed/shell/command_ec_decode.go index 3e1499d41..dafdb041a 100644 --- a/weed/shell/command_ec_decode.go +++ b/weed/shell/command_ec_decode.go @@ -51,7 +51,7 @@ func (c *commandEcDecode) Do(args []string, commandEnv *CommandEnv, writer io.Wr vid := needle.VolumeId(*volumeId) // collect topology information - topologyInfo, err := collectTopologyInfo(commandEnv) + topologyInfo, _, err := collectTopologyInfo(commandEnv) if err != nil { return err } @@ -208,7 +208,7 @@ func collectEcShards(commandEnv *CommandEnv, nodeToEcIndexBits map[string]erasur } -func collectTopologyInfo(commandEnv *CommandEnv) (topoInfo *master_pb.TopologyInfo, err error) { +func collectTopologyInfo(commandEnv *CommandEnv) (topoInfo *master_pb.TopologyInfo, volumeSizeLimitMb uint64, err error) { var resp *master_pb.VolumeListResponse err = commandEnv.MasterClient.WithClient(func(client master_pb.SeaweedClient) error { @@ -219,7 +219,7 @@ func collectTopologyInfo(commandEnv *CommandEnv) (topoInfo *master_pb.TopologyIn return } - return resp.TopologyInfo, nil + return resp.TopologyInfo, resp.VolumeSizeLimitMb, nil } |
