Skip to content

Commit

Permalink
region_cache: cherry-pick tikv#1262 to tidb-6.5 (tikv#1363)
Browse files Browse the repository at this point in the history
Signed-off-by: zyguan <[email protected]>
  • Loading branch information
zyguan authored Jun 11, 2024
1 parent 92eaf46 commit 02a6a91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/locate/region_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -1891,7 +1891,9 @@ func (c *RegionCache) GetTiFlashStores() []*Store {
defer c.storeMu.RUnlock()
var stores []*Store
for _, s := range c.storeMu.stores {
if s.storeType == tikvrpc.TiFlash {
// it should only returns resolved stores so that users won't be bothered by tombstones.
// ref: https://github.com/pingcap/tidb/issues/46602
if s.storeType == tikvrpc.TiFlash && s.getResolveState() == resolved {
stores = append(stores, s)
}
}
Expand Down

0 comments on commit 02a6a91

Please sign in to comment.