fix ObjectInfo returned by CopyObject (#11377)

erasure CopyObject was returning old metadata
This commit is contained in:
Poorna Krishnamoorthy 2021-01-29 14:49:18 -08:00 committed by GitHub
parent 1e53bf2789
commit c82aef0a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ func (er erasureObjects) CopyObject(ctx context.Context, srcBucket, srcObject, d
modTime = dstOpts.MTime
fi.ModTime = dstOpts.MTime
}
fi.Metadata = srcInfo.UserDefined
srcInfo.UserDefined["etag"] = srcInfo.ETag
// Update `xl.meta` content on each disks.