satellite/repair/checker: Use segment health on checker insert

Do not insert the number of healthy pieces for segment health anymore.
Rather, insert the segment health calculated by our new priority
function.

Change-Id: Ieee7fb2deee89f4d79ae85bac7f577befa2a0c7f
This commit is contained in:
Moby von Briesen 2021-01-04 11:48:17 -05:00
parent 6e2ef3b9ee
commit a90d6fcad8

View File

@ -366,7 +366,7 @@ func (obs *checkerObserver) RemoteSegment(ctx context.Context, segment *metainfo
Path: key, Path: key,
LostPieces: missingPieces, LostPieces: missingPieces,
InsertedTime: time.Now().UTC(), InsertedTime: time.Now().UTC(),
}, float64(numHealthy)) }, segmentHealth)
if err != nil { if err != nil {
obs.log.Error("error adding injured segment to queue", zap.Error(err)) obs.log.Error("error adding injured segment to queue", zap.Error(err))
return nil return nil