mirror of
https://github.com/pgsty/minio.git
synced 2026-08-01 08:30:47 +03:00
fix: Avoid updating object tags on failed disks (#9819)
This commit is contained in:
@@ -1021,6 +1021,10 @@ func (xl xlObjects) PutObjectTags(ctx context.Context, bucket, object string, ta
|
|||||||
}
|
}
|
||||||
|
|
||||||
for i, xlMeta := range metaArr {
|
for i, xlMeta := range metaArr {
|
||||||
|
if errs[i] != nil {
|
||||||
|
// Avoid disks where loading metadata fail
|
||||||
|
continue
|
||||||
|
}
|
||||||
// clean xlMeta.Meta of tag key, before updating the new tags
|
// clean xlMeta.Meta of tag key, before updating the new tags
|
||||||
delete(xlMeta.Meta, xhttp.AmzObjectTagging)
|
delete(xlMeta.Meta, xhttp.AmzObjectTagging)
|
||||||
// Don't update for empty tags
|
// Don't update for empty tags
|
||||||
|
|||||||
Reference in New Issue
Block a user