Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleFall authored Nov 16, 2020
2 parents 30bb957 + 402079d commit 7ccb824
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/playground/instance/tiflash.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ type scheduleConfig struct {
}

type replicateMaxReplicaConfig struct {
MaxReplicas int `json:"max-replicas"`
MaxReplicas int `json:"max-replicas"`
EnablePlacementRules string `json:"enable-placement-rules"`
}

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

0 comments on commit 7ccb824

Please sign in to comment.