Skip to content

Commit

Permalink
address the comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Sep 27, 2021
1 parent d4c793b commit 962cace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/schedulers/hot_region_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,9 @@ func (conf *hotRegionSchedulerConfig) persistLocked() error {
}

func (conf *hotRegionSchedulerConfig) checkQuerySupport(cluster opt.Cluster) bool {
querySupport := cluster.IsFeatureSupported(versioninfo.HotScheduleWithQuery)
conf.Lock()
defer conf.Unlock()
querySupport := cluster.IsFeatureSupported(versioninfo.HotScheduleWithQuery)
if querySupport != conf.lastQuerySupported {
log.Info("query supported changed",
zap.Bool("last-query-support", conf.lastQuerySupported),
Expand Down

0 comments on commit 962cace

Please sign in to comment.