From 7e1900fb3f065527eb0d69bd4f90e91dad7eb8a2 Mon Sep 17 00:00:00 2001 From: Michael Demmer Date: Fri, 22 Mar 2024 17:01:06 -0700 Subject: [PATCH] affinity is actually optional --- go/vt/vtgateproxy/vtgateproxy.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/go/vt/vtgateproxy/vtgateproxy.go b/go/vt/vtgateproxy/vtgateproxy.go index d1c28ebce9f..5f4a50c8ea1 100644 --- a/go/vt/vtgateproxy/vtgateproxy.go +++ b/go/vt/vtgateproxy/vtgateproxy.go @@ -111,8 +111,6 @@ func (proxy *VTGateProxy) NewSession(ctx context.Context, options *querypb.Execu affinity, ok := connectionAttributes[*affinityAttr] if ok { values.Set(*affinityAttr, affinity) - } else { - return nil, vterrors.Errorf(vtrpcpb.Code_UNAVAILABLE, "pool type attribute %s not supplied by client", *affinityAttr) } }