Skip to content

Commit

Permalink
go/vt/discovery: use protobuf getters for SrvVschema (#15343)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Layher <mdlayher@planetscale.com>
  • Loading branch information
mdlayher authored Feb 23, 2024
1 parent 4f8e465 commit d8f771c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions go/vt/discovery/keyspace_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit d8f771c

Please sign in to comment.