fix: Avoid updating object tags on failed disks (#9819)

This commit is contained in:
Anis Elleuch authored and Harshavardhana committed 2020-06-14 10:53:07 -07:00
1 parent d55f4336ae
commit 63e9005f01
1 file changed
+5
+5
View File
@@ -973,6 +973,11 @@ func (er erasureObjects) PutObjectTags(ctx context.Context, bucket, object strin
}
for i, fi := range metaArr {
if errs[i] != nil {
// Avoid disks where loading metadata fail
continue
}
// clean fi.Meta of tag key, before updating the new tags
delete(fi.Metadata, xhttp.AmzObjectTagging)
// Don't update for empty tags