Skip to content

Commit 2ed9959

Browse files
authored
ttl: initialize notifyStateCh in ttl job manager (#39956) (#39959)
close #39955
1 parent b85be5f commit 2ed9959

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
@@ -89,6 +89,7 @@ func NewJobManager(id string, sessPool sessionPool, store kv.Storage) (manager *
8989
manager.store = store
9090
manager.sessPool = sessPool
9191
manager.delCh = make(chan *ttlDeleteTask)
92+
manager.notifyStateCh = make(chan interface{}, 1)
9293

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

0 commit comments

Comments
 (0)