mirror of
https://github.com/minio/minio.git
synced 2025-04-01 10:13:42 -04:00
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 {
|
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
|
// clean fi.Meta of tag key, before updating the new tags
|
||||||
delete(fi.Metadata, xhttp.AmzObjectTagging)
|
delete(fi.Metadata, xhttp.AmzObjectTagging)
|
||||||
// Don't update for empty tags
|
// Don't update for empty tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user