Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tidb status add gethealth info #4844

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
optimize code
mikechengwei committed Jan 27, 2023
commit bff8335fb35a2d2f19ddf66f6bdfcbd86aac7b5b
2 changes: 1 addition & 1 deletion pkg/controller/tidb_control.go
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ func (c *defaultTiDBControl) GetHealth(tc *v1alpha1.TidbCluster, ordinal int32)
baseURL := c.getBaseURL(tc, ordinal)
url := fmt.Sprintf("%s/status", baseURL)
_, err = getBodyOK(httpClient, url)
return err == nil, nil
return err == nil, err
}

func (c *defaultTiDBControl) GetInfo(tc *v1alpha1.TidbCluster, ordinal int32) (*DBInfo, error) {