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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -977,8 +977,10 @@ func (ri *batchJobInfo) trackCurrentBucketObject(bucket string, info ObjectInfo,
ri.mu.Lock()
defer ri.mu.Unlock()
if success {
ri.Bucket = bucket
ri.Object = info.Name
}
ri.countItem(info.Size, info.DeleteMarker, success, attempt)
}