Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: yisaer <disxiaofei@163.com>
  • Loading branch information
Yisaer committed Nov 11, 2022
1 parent 21f08b5 commit 654d2ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1550,8 +1550,7 @@ func (do *Domain) StartPlanReplayerHandle() {
if planReplayerHandleLease < 1 {
return
}
do.wg.Add(1)
go func() {
do.wg.Run(func() {
tikcer := time.NewTicker(planReplayerHandleLease)
defer func() {
tikcer.Stop()
Expand All @@ -1570,7 +1569,7 @@ func (do *Domain) StartPlanReplayerHandle() {
}
}
}
}()
})
}

// GetPlanReplayerHandle returns plan replayer handle
Expand Down
2 changes: 1 addition & 1 deletion session/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ const (
version99 = 99
// version100 converts server-memory-quota to a sysvar
version100 = 100
//version101 add mysql.plan_replayer_status table
// version101 add mysql.plan_replayer_status table
version101 = 101
// version102 add mysql.plan_replayer_task table
version102 = 102
Expand Down

0 comments on commit 654d2ce

Please sign in to comment.