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

master
Anis Elleuch 5 years ago committed by Harshavardhana
parent d55f4336ae
commit 63e9005f01
  1. 5
      cmd/erasure-object.go

@ -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

Loading…
Cancel
Save