avoid rebalance state for getObjectTags if any (#18197)

fixes #18190
This commit is contained in:
Harshavardhana 2023-10-09 23:56:26 -07:00 committed by GitHub
parent f731e7ea36
commit dcce83b288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2451,12 +2451,12 @@ func (z *erasureServerPools) GetObjectTags(ctx context.Context, bucket, object s
return z.serverPools[0].GetObjectTags(ctx, bucket, object, opts)
}
idx, err := z.getPoolIdxExistingWithOpts(ctx, bucket, object, opts)
oi, _, err := z.getLatestObjectInfoWithIdx(ctx, bucket, object, opts)
if err != nil {
return nil, err
}
return z.serverPools[idx].GetObjectTags(ctx, bucket, object, opts)
return tags.ParseObjectTags(oi.UserTags)
}
// TransitionObject - transition object content to target tier.