Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwangchao committed Aug 25, 2022
1 parent 07f6e89 commit 37e6090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions domain/infosync/tiflash_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 37e6090

Please sign in to comment.