Skip to content

Commit

Permalink
playground: fix ineffectiveness of ticdc.config (#1978)
Browse files Browse the repository at this point in the history
  • Loading branch information
pingyu authored Jul 14, 2022
1 parent c492ceb commit de5991d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/playground/instance/ticdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func (c *TiCDC) Start(ctx context.Context, version utils.Version) error {
}
clusterVersion := string(version)
if tidbver.TiCDCSupportConfigFile(clusterVersion) {
if c.ConfigPath != "" {
args = append(args, fmt.Sprintf("--config=%s", c.ConfigPath))
}
if tidbver.TiCDCSupportDataDir(clusterVersion) {
args = append(args, fmt.Sprintf("--data-dir=%s", filepath.Join(c.Dir, "data")))
} else {
Expand Down

0 comments on commit de5991d

Please sign in to comment.