Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Fix needless fmt.Sprintf call in go/logic/inspector.go
Browse files Browse the repository at this point in the history
  • Loading branch information
timvaillancourt authored and dm-2 committed Jul 7, 2022
1 parent 9b27d91 commit 869ed92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/logic/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func (this *Inspector) validateBinlogs() error {
if !this.migrationContext.SwitchToRowBinlogFormat {
return fmt.Errorf("You must be using ROW binlog format. I can switch it for you, provided --switch-to-rbr and that %s doesn't have replicas", this.connectionConfig.Key.String())
}
query := fmt.Sprintf(`show /* gh-ost */ slave hosts`)
query := `show /* gh-ost */ slave hosts`
countReplicas := 0
err := sqlutils.QueryRowsMap(this.db, query, func(rowMap sqlutils.RowMap) error {
countReplicas++
Expand Down

0 comments on commit 869ed92

Please sign in to comment.