Skip to content

Commit

Permalink
fix panic
Browse files Browse the repository at this point in the history
Signed-off-by: dongmen <[email protected]>
  • Loading branch information
asddongmen committed Dec 31, 2024
1 parent 5625f63 commit 91793c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maintainer/maintainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ func NewMaintainer(cfID common.ChangeFeedID,
handleEventDuration: metrics.MaintainerHandleEventDuration.WithLabelValues(cfID.Namespace(), cfID.Name()),
}

m.setWatermark(heartbeatpb.Watermark{
m.watermark.Watermark = &heartbeatpb.Watermark{
CheckpointTs: checkpointTs,
ResolvedTs: checkpointTs,
})
}
m.state.Store(int32(heartbeatpb.ComponentState_Working))
m.bootstrapper = bootstrap.NewBootstrapper[heartbeatpb.MaintainerBootstrapResponse](m.id.Name(), m.getNewBootstrapFn())
log.Info("changefeed maintainer is created", zap.String("id", cfID.String()),
Expand Down

0 comments on commit 91793c0

Please sign in to comment.