Skip to content

Commit

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

* remove unused field
  • Loading branch information
mikechengwei authored Sep 25, 2020
1 parent cf85ab3 commit 268c53a
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 268c53a

Please sign in to comment.