satellite/repair/repairer: remove unused healthyMap
This change removes unused healthyMap from (*SegmentRepairer).Repair. Change-Id: Ie80eefdb5b7125bf70986cb13462eee737af214c
This commit is contained in:
parent
2e363707c5
commit
89639199fe
@ -221,13 +221,11 @@ func (repairer *SegmentRepairer) Repair(ctx context.Context, queueSegment *queue
|
|||||||
lostPiecesSet := sliceToSet(missingPieces)
|
lostPiecesSet := sliceToSet(missingPieces)
|
||||||
|
|
||||||
var healthyPieces, unhealthyPieces metabase.Pieces
|
var healthyPieces, unhealthyPieces metabase.Pieces
|
||||||
healthyMap := make(map[uint16]bool)
|
|
||||||
// Populate healthyPieces with all pieces from the segment except those correlating to indices in lostPieces
|
// Populate healthyPieces with all pieces from the segment except those correlating to indices in lostPieces
|
||||||
for _, piece := range pieces {
|
for _, piece := range pieces {
|
||||||
excludeNodeIDs = append(excludeNodeIDs, piece.StorageNode)
|
excludeNodeIDs = append(excludeNodeIDs, piece.StorageNode)
|
||||||
if !lostPiecesSet[piece.Number] {
|
if !lostPiecesSet[piece.Number] {
|
||||||
healthyPieces = append(healthyPieces, piece)
|
healthyPieces = append(healthyPieces, piece)
|
||||||
healthyMap[piece.Number] = true
|
|
||||||
} else {
|
} else {
|
||||||
unhealthyPieces = append(unhealthyPieces, piece)
|
unhealthyPieces = append(unhealthyPieces, piece)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user