batch: Update job info object on success (#20053)

This commit is contained in:
Krishnan Parthasarathi
2024-07-08 18:45:54 -07:00
committed by GitHub
parent d592bc0c1c
commit 380233d646

View File

@@ -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)
}