From c82aef0a565439d27e01b7d7cfd779d6c329e028 Mon Sep 17 00:00:00 2001 From: Poorna Krishnamoorthy Date: Fri, 29 Jan 2021 14:49:18 -0800 Subject: [PATCH] fix ObjectInfo returned by CopyObject (#11377) erasure CopyObject was returning old metadata --- cmd/erasure-object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/erasure-object.go b/cmd/erasure-object.go index 86ef74dd7..e1ba6ef65 100644 --- a/cmd/erasure-object.go +++ b/cmd/erasure-object.go @@ -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.