From d8f771c695b5b82ec8b104b66587018b6e18f2fa Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Fri, 23 Feb 2024 15:48:15 -0500 Subject: [PATCH] go/vt/discovery: use protobuf getters for SrvVschema (#15343) Signed-off-by: Matt Layher --- go/vt/discovery/keyspace_events.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/go/vt/discovery/keyspace_events.go b/go/vt/discovery/keyspace_events.go index c2567da9a87..014284ed5ee 100644 --- a/go/vt/discovery/keyspace_events.go +++ b/go/vt/discovery/keyspace_events.go @@ -391,8 +391,7 @@ func (kss *keyspaceState) getMoveTablesStatus(vs *vschemapb.SrvVSchema) (*MoveTa } // if there are no routing rules defined, then movetables is not in progress, exit early - if (vs.RoutingRules != nil && len(vs.RoutingRules.Rules) == 0) && - (vs.ShardRoutingRules != nil && len(vs.ShardRoutingRules.Rules) == 0) { + if len(vs.GetRoutingRules().GetRules()) == 0 && len(vs.GetShardRoutingRules().GetRules()) == 0 { return mtState, nil }