Skip to content

Commit 5ce277b

Browse files
committed
ttl: initialize notifyStateCh in ttl job manager (#39956)
close #39955
1 parent 06290cd commit 5ce277b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ttl/ttlworker/job_manager.go

+1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func NewJobManager(id string, sessPool sessionPool, store kv.Storage) (manager *
8888
manager.store = store
8989
manager.sessPool = sessPool
9090
manager.delCh = make(chan *ttlDeleteTask)
91+
manager.notifyStateCh = make(chan interface{}, 1)
9192

9293
manager.init(manager.jobLoop)
9394
manager.ctx = logutil.WithKeyValue(manager.ctx, "ttl-worker", "manager")

0 commit comments

Comments
 (0)