do not need to trace ignored objects (#15894)

This commit is contained in:
Harshavardhana 2022-10-18 13:47:55 -07:00 committed by GitHub
parent 07b6dce1a5
commit 9fff315555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -595,12 +595,12 @@ func (r *BatchJobReplicateV1) Start(ctx context.Context, api ObjectLayer, job Ba
stopFn := globalBatchJobsMetrics.trace(batchReplicationMetricObject, job.ID, attempts, result)
success := true
if err := r.ReplicateToTarget(ctx, api, c, result, retry); err != nil {
stopFn(err)
if isErrVersionNotFound(err) || isErrObjectNotFound(err) {
// object must be deleted concurrently, allow
// these failures but do not count them
continue
}
stopFn(err)
logger.LogIf(ctx, err)
success = false
} else {