Skip to content

Commit

Permalink
go: cmd/dolt: sqlengine: Actually call DoltBinlogReplicaController.Cl…
Browse files Browse the repository at this point in the history
…ose when closing the SqlEngine.
  • Loading branch information
reltuk committed Jan 28, 2025
1 parent 003e2d1 commit 89eb2af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/cmd/dolt/commands/engine/sqlengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ func (se *SqlEngine) GetUnderlyingEngine() *gms.Engine {

func (se *SqlEngine) Close() error {
if se.engine != nil {
if se.engine.Analyzer.Catalog.BinlogReplicaController != nil {
dblr.DoltBinlogReplicaController.Close()
}
return se.engine.Close()
}
return nil
Expand Down

0 comments on commit 89eb2af

Please sign in to comment.