File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -364,17 +364,17 @@ func (m *Manager) getCache(region *core.RegionInfo) (*regionCache, *GroupState)
364364// GetRegionAffinityGroupState returns the affinity group state and isAffinity for a region.
365365// This is a read-only operation that does not modify cache and we use this for temporary check
366366func (m * Manager ) GetRegionAffinityGroupState (region * core.RegionInfo ) (group * GroupState , isAffinity bool ) {
367- return m .getRegionAffinityGroupState (region , false )
367+ return m .doGetRegionAffinity (region , false )
368368}
369369
370370// GetAndCacheRegionAffinityGroupState returns the affinity group state and saves it to cache.
371371// The caller must call InvalidCache() when the region is deleted or merged.
372372// Currently only used by AffinityChecker.Check.
373373func (m * Manager ) GetAndCacheRegionAffinityGroupState (region * core.RegionInfo ) (group * GroupState , isAffinity bool ) {
374- return m .getRegionAffinityGroupState (region , true )
374+ return m .doGetRegionAffinity (region , true )
375375}
376376
377- func (m * Manager ) getRegionAffinityGroupState (region * core.RegionInfo , saveCache bool ) (group * GroupState , isAffinity bool ) {
377+ func (m * Manager ) doGetRegionAffinity (region * core.RegionInfo , saveCache bool ) (group * GroupState , isAffinity bool ) {
378378 if region == nil || ! m .IsAvailable () {
379379 return nil , false
380380 }
You can’t perform that action at this time.
0 commit comments