From 1fda0592db0a499fca50bd297be06b5b45d9efab Mon Sep 17 00:00:00 2001 From: mikechengwei <842725815@qq.com> Date: Tue, 25 Jan 2022 17:49:22 +0800 Subject: [PATCH] optimize code --- pkg/manager/member/tidb_member_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/manager/member/tidb_member_manager.go b/pkg/manager/member/tidb_member_manager.go index c45acc1d85..251739fbf4 100644 --- a/pkg/manager/member/tidb_member_manager.go +++ b/pkg/manager/member/tidb_member_manager.go @@ -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 }