Skip to content

Commit

Permalink
*: fix issue pingcap#40854
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <[email protected]>
  • Loading branch information
BornChanger committed Feb 2, 2023
1 parent 5c345b1 commit fa80bae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion domain/domain_sysvars.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ func (do *Domain) setGlobalResourceControl(enable bool) {
} else {
variable.DisableGlobalResourceControlFunc()
}
logutil.BgLogger().Info("set resource control", zap.Bool("enable", enable))

if enable != variable.EnableResourceControl.Load() {
logutil.BgLogger().Info("set resource control", zap.Bool("enable", enable))
}
}

// updatePDClient is used to set the dynamic option into the PD client.
Expand Down

0 comments on commit fa80bae

Please sign in to comment.