update continous heal metrics appropriately for scanned items (#10352)

bonus make sure to ignore objectNotFound, and versionNotFound
errors properly at all layers, since HealObjects() returns
objectNotFound error if the bucket or prefix is empty.
This commit is contained in:
Harshavardhana
2020-08-26 08:53:33 -07:00
committed by GitHub
parent ea1803417f
commit 7778fef6bb
3 changed files with 19 additions and 11 deletions

View File

@@ -101,6 +101,7 @@ func (h *healRoutine) run(ctx context.Context, objAPI ObjectLayer) {
ObjectPathUpdated(path.Join(task.bucket, task.object))
}
task.responseCh <- healResult{result: res, err: err}
case <-h.doneCh:
return
case <-ctx.Done():