pkg/madmin: Set UploadID in ListUploadsHeal (#3945)

Without this fix, `mc admin heal -I` wouldn't be able to heal ongoing
uploads. `mc` depends on `ListUploadsHeal` API to identify ongoing
uploads to heal given a bucket and an object.
This commit is contained in:
Krishnan Parthasarathi 2017-03-21 23:02:02 +05:30 committed by Harshavardhana
parent 9d6e226692
commit 181e002c56
1 changed files with 1 additions and 0 deletions

View File

@ -627,6 +627,7 @@ func (adm *AdminClient) ListUploadsHeal(bucket, prefix string, recursive bool,
// Send upload info. // Send upload info.
case uploadStatCh <- UploadInfo{ case uploadStatCh <- UploadInfo{
Key: upload.Key, Key: upload.Key,
UploadID: upload.UploadID,
Initiated: upload.Initiated, Initiated: upload.Initiated,
HealUploadInfo: upload.HealUploadInfo, HealUploadInfo: upload.HealUploadInfo,
}: }: