Skip to content

Commit

Permalink
Merge pull request #71756 from cockroachdb/blathers/backport-release-…
Browse files Browse the repository at this point in the history
…21.2-71749

release-21.2: server: avoid panic in NodesUI
  • Loading branch information
dhartunian authored Oct 20, 2021
2 parents 49ddb0e + d612c5e commit c5a6b26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/server/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,9 @@ func (s *statusServer) NodesUI(
}

internalResp, _, err := s.nodesHelper(ctx, 0 /* limit */, 0 /* offset */)
if err != nil {
return nil, err
}
resp := &serverpb.NodesResponseExternal{
Nodes: make([]serverpb.NodeResponse, len(internalResp.Nodes)),
LivenessByNodeID: internalResp.LivenessByNodeID,
Expand Down

0 comments on commit c5a6b26

Please sign in to comment.