From 380233d646b3e02e8c9f389b8bb02d131d5a06c9 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Mon, 8 Jul 2024 18:45:54 -0700 Subject: [PATCH] batch: Update job info object on success (#20053) --- cmd/batch-handlers.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/batch-handlers.go b/cmd/batch-handlers.go index ef97e1401..9950bb1c5 100644 --- a/cmd/batch-handlers.go +++ b/cmd/batch-handlers.go @@ -977,8 +977,10 @@ func (ri *batchJobInfo) trackCurrentBucketObject(bucket string, info ObjectInfo, ri.mu.Lock() defer ri.mu.Unlock() - ri.Bucket = bucket - ri.Object = info.Name + if success { + ri.Bucket = bucket + ri.Object = info.Name + } ri.countItem(info.Size, info.DeleteMarker, success, attempt) }