Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yisaer committed Jan 12, 2023
1 parent 3300e4e commit 7c74d76
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -2060,9 +2060,7 @@ func (do *Domain) updateStatsWorkerExitPreprocessing(statsHandle *handle.Handle,
}

func (do *Domain) updateStatsWorker(ctx sessionctx.Context, owner owner.Manager) {
if do.statsLease <= 0 {
return
}
defer util.Recover(metrics.LabelDomain, "updateStatsWorker", nil, false)
logutil.BgLogger().Info("updateStatsWorker started.")
lease := do.statsLease
deltaUpdateTicker := time.NewTicker(20 * lease)
Expand Down

0 comments on commit 7c74d76

Please sign in to comment.