mirror of https://github.com/minio/minio.git
fix: Avoid updating object tags on failed disks (#9819)
This commit is contained in:
parent
d55f4336ae
commit
63e9005f01
|
@ -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…
Reference in New Issue