From 9fff315555f10a76ff4d5e677655144b83a78347 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 18 Oct 2022 13:47:55 -0700 Subject: [PATCH] do not need to trace ignored objects (#15894) --- cmd/batch-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/batch-handlers.go b/cmd/batch-handlers.go index 7e0fc575c..cd37514b2 100644 --- a/cmd/batch-handlers.go +++ b/cmd/batch-handlers.go @@ -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 {