satellite/repair/checker: fix remote_files_checked metric

While metaloop refactoring we missed metric for all
objects processed by repair checker.

Change-Id: I100f10a36c52e2651923ecaa377261752877d673
This commit is contained in:
Michał Niewrzał 2021-07-22 10:12:55 +02:00 committed by Michal Niewrzal
parent b12d29935a
commit a883d7f582

View File

@ -216,6 +216,8 @@ func (obs *checkerObserver) RemoteSegment(ctx context.Context, segment *segmentl
if obs.lastStreamID.Compare(segment.StreamID) != 0 {
obs.lastStreamID = segment.StreamID
stats.iterationAggregates.objectsChecked++
obs.monStats.objectsChecked++
}
obs.monStats.remoteSegmentsChecked++
@ -350,5 +352,10 @@ func (obs *checkerObserver) RemoteSegment(ctx context.Context, segment *segmentl
}
func (obs *checkerObserver) InlineSegment(ctx context.Context, segment *segmentloop.Segment) (err error) {
// inline segments are not repaired but we would like to count as checked also
// objects that have only inline segments
if obs.lastStreamID.Compare(segment.StreamID) != 0 {
obs.monStats.objectsChecked++
}
return nil
}