diff --git a/satellite/repair/repairer/segments.go b/satellite/repair/repairer/segments.go index 05645632c..9e9e0086d 100644 --- a/satellite/repair/repairer/segments.go +++ b/satellite/repair/repairer/segments.go @@ -400,6 +400,7 @@ func (repairer *SegmentRepairer) Repair(ctx context.Context, queueSegment *queue request := overlay.FindStorageNodesRequest{ RequestedCount: requestCount, ExcludedIDs: excludeNodeIDs, + Placement: segment.Placement, } newNodes, err := repairer.overlay.FindStorageNodesForUpload(ctx, request) if err != nil { diff --git a/satellite/repair/repairer/segments_test.go b/satellite/repair/repairer/segments_test.go index 5756ced04..7bc6f345b 100644 --- a/satellite/repair/repairer/segments_test.go +++ b/satellite/repair/repairer/segments_test.go @@ -27,7 +27,7 @@ import ( func TestSegmentRepairPlacement(t *testing.T) { piecesCount := 4 testplanet.Run(t, testplanet.Config{ - SatelliteCount: 1, StorageNodeCount: 8, UplinkCount: 1, + SatelliteCount: 1, StorageNodeCount: 10, UplinkCount: 1, Reconfigure: testplanet.Reconfigure{ Satellite: testplanet.ReconfigureRS(1, 2, piecesCount, piecesCount), },