Skip to content

Commit

Permalink
fix: fail to create config for tiflash (pingcap#969)
Browse files Browse the repository at this point in the history
Co-authored-by: SIGSEGV <[email protected]>
  • Loading branch information
unbyte and lucklove authored Dec 10, 2020
1 parent ebc75de commit 9e5f2bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/playground/instance/tiflash.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ func (inst *TiFlashInstance) StoreAddr() string {
}

func (inst *TiFlashInstance) checkConfig(deployDir, clusterManagerPath string, version pkgver.Version, tidbStatusAddrs, endpoints []string) error {
if err := os.MkdirAll(inst.Dir, 0755); err != nil {
return errors.Trace(err)
}
if inst.ConfigPath == "" {
inst.ConfigPath = path.Join(inst.Dir, "tiflash.toml")
}
Expand Down

0 comments on commit 9e5f2bd

Please sign in to comment.