Skip to content

Commit

Permalink
playground: fallback to default version when componen specific versio…
Browse files Browse the repository at this point in the history
…n is empty (#2344)
  • Loading branch information
xhebox authored Dec 28, 2023
1 parent 5618124 commit 48b5119
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -883,12 +883,15 @@ func (p *Playground) waitAllTiFlashUp() {
func (p *Playground) bindVersion(comp string, version string) (bindVersion string) {
switch comp {
case spec.ComponentTiKVCDC:
return p.bootOptions.TiKVCDC.Version
bindVersion = p.bootOptions.TiKVCDC.Version
case spec.ComponentTiProxy:
return p.bootOptions.TiProxy.Version
bindVersion = p.bootOptions.TiProxy.Version
default:
return version
}
if bindVersion == "" {
bindVersion = version
}
return
}

func (p *Playground) bootCluster(ctx context.Context, env *environment.Environment, options *BootOptions) error {
Expand Down

0 comments on commit 48b5119

Please sign in to comment.