Skip to content

Commit 402079d

Browse files
authored
Fix tiflash not start with newest nightly PD (pingcap#902)
1 parent cc41ad5 commit 402079d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

components/playground/instance/tiflash.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ type scheduleConfig struct {
7777
}
7878

7979
type replicateMaxReplicaConfig struct {
80-
MaxReplicas int `json:"max-replicas"`
80+
MaxReplicas int `json:"max-replicas"`
81+
EnablePlacementRules string `json:"enable-placement-rules"`
8182
}
8283

8384
type replicateEnablePlacementRulesConfig struct {
@@ -128,7 +129,8 @@ func (inst *TiFlashInstance) Start(ctx context.Context, version v0manifest.Versi
128129
}
129130
// Update maxReplicas before placement rules so that it would not be overwritten
130131
maxReplicas, err := json.Marshal(replicateMaxReplicaConfig{
131-
MaxReplicas: 1,
132+
MaxReplicas: 1,
133+
EnablePlacementRules: "false",
132134
})
133135
if err != nil {
134136
return err

0 commit comments

Comments
 (0)