From 37e6090c1460f163ecf57cb54ef2f8c4ed4fa464 Mon Sep 17 00:00:00 2001 From: Chao Wang Date: Thu, 25 Aug 2022 11:20:24 +0800 Subject: [PATCH] comments --- domain/infosync/tiflash_manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/domain/infosync/tiflash_manager.go b/domain/infosync/tiflash_manager.go index c1c205f2045c1..eb929a776ae58 100644 --- a/domain/infosync/tiflash_manager.go +++ b/domain/infosync/tiflash_manager.go @@ -492,12 +492,14 @@ func (tiflash *MockTiFlash) HandleGetStoresStat() *helper.StoresStat { } } +// SetRuleGroupIndex sets the group index of tiflash func (tiflash *MockTiFlash) SetRuleGroupIndex(groupIndex int) { tiflash.Lock() defer tiflash.Unlock() tiflash.groupIndex = groupIndex } +// GetRuleGroupIndex gets the group index of tiflash func (tiflash *MockTiFlash) GetRuleGroupIndex() int { tiflash.Lock() defer tiflash.Unlock()