From 24461938e2f4588a22951b1c9c39a0a558a3d930 Mon Sep 17 00:00:00 2001 From: iosmanthus Date: Wed, 6 Sep 2023 10:54:44 -0600 Subject: [PATCH] fix pd microservice component id (#2272) --- components/playground/playground.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/playground/playground.go b/components/playground/playground.go index d814422a81..fc600fc21e 100644 --- a/components/playground/playground.go +++ b/components/playground/playground.go @@ -674,7 +674,7 @@ func (p *Playground) addInstance(componentID string, pdRole instance.PDRole, tif dataDir := p.dataDir id := p.allocID(componentID) - dir := filepath.Join(dataDir, fmt.Sprintf("%s-%d", pdRole, id)) + dir := filepath.Join(dataDir, fmt.Sprintf("%s-%d", componentID, id)) if err = utils.MkdirAll(dir, 0755); err != nil { return nil, err }