Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
sdojjy committed Nov 30, 2021
1 parent 6cd2eaa commit 2227e75
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cdc/sink/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ func (m *Manager) CreateTableSink(tableID model.TableID, checkpointTs model.Ts,
// Close closes the Sink manager and backend Sink, this method can be reentrantly called
func (m *Manager) Close(ctx context.Context) error {
tableSinkTotalRowsCountCounter.DeleteLabelValues(m.captureAddr, m.changefeedID)
return m.backendSink.Close(ctx)
if m.backendSink != nil {
return m.backendSink.Close(ctx)
}
return nil
}

func (m *Manager) getMinEmittedTs(tableID model.TableID) model.Ts {
Expand Down

0 comments on commit 2227e75

Please sign in to comment.