Skip to content

Commit

Permalink
playground: fix ineffective of ticdc.config
Browse files Browse the repository at this point in the history
Issue Number: #1977

Signed-off-by: pingyu <yuping@pingcap.com>
  • Loading branch information
pingyu committed Jul 9, 2022
1 parent 8117e9a commit 6500dae
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 6500dae

Please sign in to comment.