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:
parent
b12d29935a
commit
a883d7f582
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user