Skip to content

Commit

Permalink
vtgate tablet gateway buffering: don't shutdown if not initialized (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-nayak-ps authored Aug 4, 2023
1 parent 9cee9aa commit b53dc1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/vt/vtgate/tabletgateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ func (gw *TabletGateway) WaitForTablets(tabletTypesToWait []topodatapb.TabletTyp
// Close shuts down underlying connections.
// This function hides the inner implementation.
func (gw *TabletGateway) Close(_ context.Context) error {
gw.buffer.Shutdown()
if gw.buffer != nil {
gw.buffer.Shutdown()
}
return gw.hc.Close()
}

Expand Down

0 comments on commit b53dc1c

Please sign in to comment.