Skip to content

Commit

Permalink
fix flush interval
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Nov 2, 2023
1 parent 896dbda commit 4e22abd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cdc/redo/meta_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type metaManager struct {
startTs model.Ts

lastFlushTime time.Time
flushIntervalInMs int64
cfg *config.ConsistentConfig
metricFlushLogDuration prometheus.Observer
}
Expand All @@ -93,12 +94,13 @@ func NewMetaManager(
}

m := &metaManager{
captureID: config.GetGlobalServerConfig().AdvertiseAddr,
changeFeedID: changefeedID,
uuidGenerator: uuid.NewGenerator(),
enabled: true,
cfg: cfg,
startTs: checkpoint,
captureID: config.GetGlobalServerConfig().AdvertiseAddr,
changeFeedID: changefeedID,
uuidGenerator: uuid.NewGenerator(),
enabled: true,
flushIntervalInMs: cfg.FlushIntervalInMs,
cfg: cfg,
startTs: checkpoint,
}
return m
}
Expand Down

0 comments on commit 4e22abd

Please sign in to comment.