Skip to content

Commit

Permalink
Merge branch 'master' into component_version
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot[bot] authored Aug 25, 2023
2 parents 4306e33 + 78092c0 commit d8d9047
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/playground/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ If you'd like to use a TiDB version other than %s, cancel and retry with the fol
rootCmd.Flags().StringVar(&options.TiCDC.Host, "ticdc.host", "", "Playground TiCDC host. If not provided, TiDB will still use `host` flag as its host")
rootCmd.Flags().IntVar(&options.TiCDC.Port, "ticdc.port", 0, "Playground TiCDC port. If not provided, TiCDC will use 8300 as its port")
rootCmd.Flags().StringVar(&options.TiProxy.Host, "tiproxy.host", "", "Playground TiProxy host. If not provided, TiProxy will still use `host` flag as its host")
rootCmd.Flags().IntVar(&options.TiProxy.Port, "tiproxy.port", 0, "Playground TiProxy port. If not provided, TiProxy will use 4000 as its port")
rootCmd.Flags().IntVar(&options.TiProxy.Port, "tiproxy.port", 0, "Playground TiProxy port. If not provided, TiProxy will use 6000 as its port")

rootCmd.Flags().StringVar(&options.TiDB.ConfigPath, "db.config", "", "TiDB instance configuration file")
rootCmd.Flags().StringVar(&options.TiKV.ConfigPath, "kv.config", "", "TiKV instance configuration file")
Expand Down
7 changes: 6 additions & 1 deletion components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,12 @@ func (p *Playground) waitAllDBUp() ([]string, []string) {
if len(p.tidbs) > 0 {
var wg sync.WaitGroup
var tidbMu, tiproxyMu sync.Mutex
bars := progress.NewMultiBar(color.YellowString("Waiting for tidb and tiproxy instances ready"))
var bars *progress.MultiBar
if len(p.tiproxys) > 0 {
bars = progress.NewMultiBar(color.YellowString("Waiting for tidb and tiproxy instances ready"))
} else {
bars = progress.NewMultiBar(color.YellowString("Waiting for tidb instances ready"))
}
for _, db := range p.tidbs {
wg.Add(1)
prefix := color.YellowString(db.Addr())
Expand Down

0 comments on commit d8d9047

Please sign in to comment.