diff --git a/cmd/erasure-server-pool.go b/cmd/erasure-server-pool.go index 2305e1bb2..e6b9f3903 100644 --- a/cmd/erasure-server-pool.go +++ b/cmd/erasure-server-pool.go @@ -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.