Skip to content

Commit

Permalink
ttl: initialize notifyStateCh in ttl job manager (pingcap#39956)
Browse files Browse the repository at this point in the history
  • Loading branch information
YangKeao committed Dec 20, 2022
1 parent 06290cd commit 5ce277b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ttl/ttlworker/job_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func NewJobManager(id string, sessPool sessionPool, store kv.Storage) (manager *
manager.store = store
manager.sessPool = sessPool
manager.delCh = make(chan *ttlDeleteTask)
manager.notifyStateCh = make(chan interface{}, 1)

manager.init(manager.jobLoop)
manager.ctx = logutil.WithKeyValue(manager.ctx, "ttl-worker", "manager")
Expand Down

0 comments on commit 5ce277b

Please sign in to comment.