From 0b0194b1d78bd5669c3333f732edd817cc2e9ee7 Mon Sep 17 00:00:00 2001 From: Henry Lonng Date: Mon, 20 Jun 2022 11:18:28 -0700 Subject: [PATCH] playground: fix scale-out cdc command Signed-off-by: Henry Lonng --- components/playground/playground.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/playground/playground.go b/components/playground/playground.go index 9490754226..3698770456 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -525,6 +525,11 @@ func (p *Playground) commandHandler(w http.ResponseWriter, r *http.Request) { return } + // Mapping command line component id to internal spec component id. + if cmd.ComponentID == ticdc { + cmd.ComponentID = spec.ComponentCDC + } + err = p.handleCommand(cmd, w) if err != nil { w.WriteHeader(403)