Skip to content

Commit

Permalink
Align old and new client resp handling
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed Jan 1, 2025
1 parent 82c335a commit 3018fa3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/cmd/vtctldclient/command/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ func commandValidateSchemaKeyspace(cmd *cobra.Command, args []string) error {
return err
}

if len(resp.Results) > 0 {
return fmt.Errorf("%s", resp.Results[0])
}

data, err := cli.MarshalJSON(resp)
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions go/vt/vtctl/grpcvtctldserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4801,6 +4801,7 @@ func (s *VtctldServer) ValidateSchemaKeyspace(ctx context.Context, req *vtctldat
defer panicHandler(&err)

span.Annotate("keyspace", req.Keyspace)
span.Annotate("shards", req.Shards)
keyspace := req.Keyspace

resp = &vtctldatapb.ValidateSchemaKeyspaceResponse{
Expand Down

0 comments on commit 3018fa3

Please sign in to comment.