Skip to content

Commit

Permalink
vtcombo: close query service on drop database
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Dougherty <[email protected]>
  • Loading branch information
brendar committed Aug 15, 2024
1 parent 0af3d38 commit 308c1e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion go/vt/vtcombo/tablet_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ func DeleteKs(
tablet.tm.Stop()
tablet.tm.Close()
tablet.qsc.SchemaEngine().Close()
err := ts.DeleteTablet(ctx, tablet.alias)
err := tablet.qsc.QueryService().Close(ctx)
if err != nil {
return err
}
err = ts.DeleteTablet(ctx, tablet.alias)
if err != nil {
return err
}
Expand Down

0 comments on commit 308c1e0

Please sign in to comment.