Skip to content

Commit

Permalink
fix pd microservice component id (pingcap#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
iosmanthus authored Sep 6, 2023
1 parent b1557f8 commit 2446193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/playground/playground.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2446193

Please sign in to comment.