Skip to content

Commit

Permalink
pass cells from backend in refreshTabletsInKeyspaceShard
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Feb 12, 2025
1 parent 81cf199 commit 6b77931
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go/vt/vtorc/logic/tablet_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,12 @@ func refreshTabletInfoOfShard(ctx context.Context, keyspace, shard string) {
}

func refreshTabletsInKeyspaceShard(ctx context.Context, keyspace, shard string, loader func(tabletAlias string), forceRefresh bool, tabletsToIgnore []string) {
tablets, err := ts.GetTabletsByShard(ctx, keyspace, shard)
cells, err := inst.ReadCells()
if err != nil {
log.Errorf("Error fetching cells: %v", err)
return
}
tablets, err := ts.GetTabletsByShardCell(ctx, keyspace, shard, cells)
if err != nil {
log.Errorf("Error fetching tablets for keyspace/shard %v/%v: %v", keyspace, shard, err)
return
Expand Down

0 comments on commit 6b77931

Please sign in to comment.