diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-07-31 09:39:48 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-07-31 09:39:48 -0700 |
| commit | f5a69a0e4423db70cffb3501c05bf5d4ed593370 (patch) | |
| tree | d70180196a429ebe5ad4f14b3f4b915f85dc71ed /weed/shell/command_ec_decode.go | |
| parent | 899963ac20556f6a48aad431eec8ec995e982dd3 (diff) | |
| parent | 6ba65c3382d8e6e73bfa5312ed9c04c5b17aece5 (diff) | |
| download | seaweedfs-f5a69a0e4423db70cffb3501c05bf5d4ed593370.tar.xz seaweedfs-f5a69a0e4423db70cffb3501c05bf5d4ed593370.zip | |
Merge branch 'master' into add_remote_storage
Diffstat (limited to 'weed/shell/command_ec_decode.go')
| -rw-r--r-- | weed/shell/command_ec_decode.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/weed/shell/command_ec_decode.go b/weed/shell/command_ec_decode.go index dafdb041a..e4d597d84 100644 --- a/weed/shell/command_ec_decode.go +++ b/weed/shell/command_ec_decode.go @@ -223,21 +223,6 @@ func collectTopologyInfo(commandEnv *CommandEnv) (topoInfo *master_pb.TopologyIn } -func collectEcShardInfos(topoInfo *master_pb.TopologyInfo, selectedCollection string, vid needle.VolumeId) (ecShardInfos []*master_pb.VolumeEcShardInformationMessage) { - - eachDataNode(topoInfo, func(dc string, rack RackId, dn *master_pb.DataNodeInfo) { - if diskInfo, found := dn.DiskInfos[string(types.HardDriveType)]; found { - for _, v := range diskInfo.EcShardInfos { - if v.Collection == selectedCollection && v.Id == uint32(vid) { - ecShardInfos = append(ecShardInfos, v) - } - } - } - }) - - return -} - func collectEcShardIds(topoInfo *master_pb.TopologyInfo, selectedCollection string) (vids []needle.VolumeId) { vidMap := make(map[uint32]bool) |
