Skip to content

Commit

Permalink
Fix the issue that exec command doesn't handle tiflash nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucklove committed Jun 17, 2021
1 parent 61b98df commit 145a6d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/cluster/manager/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ func renderInstanceSpec(t string, inst spec.Instance) ([]string, error) {
}
tfs.DataDir = d
key := inst.ID() + d + uuid.New().String()
if s, err := renderSpec(t, tfs, key); err == nil {
result = append(result, s)
s, err := renderSpec(t, inst.(*spec.TiFlashInstance), key)
if err != nil {
log.Debugf("error rendering tiflash spec: %s", err)
}
result = append(result, s)
}
default:
s, err := renderSpec(t, inst, inst.ID())
Expand Down

0 comments on commit 145a6d4

Please sign in to comment.