diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-07-30 15:18:01 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-07-30 15:18:01 -0700 |
| commit | c6f992b2a363b97b0a0b64a8e44424a4f0b805b0 (patch) | |
| tree | 322c7f219c9d934f4a1e973919689bded99904c4 | |
| parent | c16e366fb25a491b92b37c001cbd430562e6e604 (diff) | |
| download | seaweedfs-c6f992b2a363b97b0a0b64a8e44424a4f0b805b0.tar.xz seaweedfs-c6f992b2a363b97b0a0b64a8e44424a4f0b805b0.zip | |
remove dead code
| -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) |
