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:
parent
6e2ef3b9ee
commit
a90d6fcad8
@ -366,7 +366,7 @@ func (obs *checkerObserver) RemoteSegment(ctx context.Context, segment *metainfo
|
||||
Path: key,
|
||||
LostPieces: missingPieces,
|
||||
InsertedTime: time.Now().UTC(),
|
||||
}, float64(numHealthy))
|
||||
}, segmentHealth)
|
||||
if err != nil {
|
||||
obs.log.Error("error adding injured segment to queue", zap.Error(err))
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user