mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 23:57:25 +08:00
remove dead code
This commit is contained in:
@@ -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) {
|
func collectEcShardIds(topoInfo *master_pb.TopologyInfo, selectedCollection string) (vids []needle.VolumeId) {
|
||||||
|
|
||||||
vidMap := make(map[uint32]bool)
|
vidMap := make(map[uint32]bool)
|
||||||
|
Reference in New Issue
Block a user