Skip to content

Commit

Permalink
Fix heterogeneous code cause tidb rolling update bug (pingcap#3322)
Browse files Browse the repository at this point in the history
* fix rolling update

* remove unused field
  • Loading branch information
mikechengwei authored and cvvz committed Oct 18, 2020
1 parent 781e867 commit f5ccdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/manager/member/tidb_member_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ func getTiDBConfigMap(tc *v1alpha1.TidbCluster) (*corev1.ConfigMap, error) {
if tc.IsHeterogeneous() {
tidbStartScriptModel.Path = controller.PDMemberName(tc.Spec.Cluster.Name) + ":2379"
} else {
tidbStartScriptModel.Path = controller.PDMemberName(tc.Name) + ":2379"
tidbStartScriptModel.Path = "${CLUSTER_NAME}-pd:2379"
}

startScript, err := RenderTiDBStartScript(tidbStartScriptModel)
Expand Down

0 comments on commit f5ccdba

Please sign in to comment.