Skip to content

Commit

Permalink
use target tablet from health stats cache when checking replication s…
Browse files Browse the repository at this point in the history
…tatus

Signed-off-by: Austen Lacy <[email protected]>
  • Loading branch information
austenLacy committed Nov 2, 2023
1 parent 8575b17 commit e8211df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ func (e *Executor) showVitessReplicationStatus(ctx context.Context, filter *sqlp
for _, s := range status {
for _, ts := range s.TabletsStats {
// We only want to show REPLICA and RDONLY tablets
if ts.Tablet.Type != topodatapb.TabletType_REPLICA && ts.Tablet.Type != topodatapb.TabletType_RDONLY {
if ts.Target.TabletType != topodatapb.TabletType_REPLICA && ts.Target.TabletType != topodatapb.TabletType_RDONLY {
continue
}

Expand Down

0 comments on commit e8211df

Please sign in to comment.