Skip to content

Commit

Permalink
optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
mikechengwei committed Jan 25, 2022
1 parent 1a7dd1b commit 1fda059
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 @@ -311,7 +311,7 @@ func (m *tidbMemberManager) syncInitializer(tc *v1alpha1.TidbCluster) {
if err != nil {
if strings.Contains(fmt.Sprint(err), "Access denied") {
klog.Errorf("Can't connect to the TiDB service of the TiDB cluster [%s:%s], error: %s", ns, tcName, err)
val := false
val := true
tc.Status.TiDB.PasswordInitialized = &val
return
}
Expand Down

0 comments on commit 1fda059

Please sign in to comment.