Skip to content

Commit

Permalink
[release-19.0] go/vt/discovery: use protobuf getters for SrvVschema (#…
Browse files Browse the repository at this point in the history
…15343) (#15346)

Signed-off-by: Matt Layher <[email protected]>
Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com>
  • Loading branch information
vitess-bot[bot] authored Feb 23, 2024
1 parent 979014c commit 5ca4327
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 5ca4327

Please sign in to comment.