Skip to content

Commit

Permalink
use show replica status
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Jan 27, 2025
1 parent 2ff822f commit dfda044
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/mysql/flavor_filepos.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (flv *filePosFlavor) resetBinaryLogsCommand() string {

// status is part of the Flavor interface.
func (flv *filePosFlavor) status(c *Conn) (replication.ReplicationStatus, error) {
qr, err := c.ExecuteFetch("SHOW SLAVE STATUS", 100, true /* wantfields */)
qr, err := c.ExecuteFetch("SHOW REPLICA STATUS", 100, true /* wantfields */)
if err != nil {
return replication.ReplicationStatus{}, err
}
Expand Down
2 changes: 1 addition & 1 deletion go/vt/vtgate/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ func (e *Executor) ShowVitessReplicationStatus(ctx context.Context, filter *sqlp
replicaSQLRunningField := "Replica_SQL_Running"
secondsBehindSourceField := "Seconds_Behind_Source"
if !replicaQueries {
sql = "show slave status"
sql = "show replica status"
sourceHostField = "Master_Host"
sourcePortField = "Master_Port"
replicaIORunningField = "Slave_IO_Running"
Expand Down

0 comments on commit dfda044

Please sign in to comment.