Skip to content

Commit

Permalink
statistics: enlarge capacity of ddlEventCh to 1000 (#39532)
Browse files Browse the repository at this point in the history
ref #36004, ref #38189
  • Loading branch information
xuyifangreeneyes authored Dec 1, 2022
1 parent 3bb8e79 commit 12e5272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statistics/handle/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ type sessionPool interface {
func NewHandle(ctx sessionctx.Context, lease time.Duration, pool sessionPool, tracker sessionctx.SysProcTracker, serverIDGetter func() uint64) (*Handle, error) {
cfg := config.GetGlobalConfig()
handle := &Handle{
ddlEventCh: make(chan *ddlUtil.Event, 100),
ddlEventCh: make(chan *ddlUtil.Event, 1000),
listHead: &SessionStatsCollector{mapper: make(tableDeltaMap), rateMap: make(errorRateDeltaMap)},
idxUsageListHead: &SessionIndexUsageCollector{mapper: make(indexUsageMap)},
pool: pool,
Expand Down

0 comments on commit 12e5272

Please sign in to comment.