From dcce83b28838be3fc53448c4e50712fe1f3fbddb Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 9 Oct 2023 23:56:26 -0700 Subject: [PATCH] avoid rebalance state for getObjectTags if any (#18197) fixes #18190 --- cmd/erasure-server-pool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.