fix: Incorrect ServersCount in cluster.info (#15431)

The `ServersCount` field in cluster.info is expected to contain the
number of nodes, and not number of endpoints.
This commit is contained in:
Shireesh Anjal
2022-07-30 10:51:40 +05:30
committed by GitHub
parent 3cdb609cca
commit e6eab2091f
2 changed files with 2 additions and 2 deletions

View File

@@ -2713,7 +2713,7 @@ func appendClusterMetaInfoToZip(ctx context.Context, zipWriter *zip.Writer) {
go func() {
ci := clusterInfo{}
ci.Info.PoolsCount = len(globalEndpoints)
ci.Info.ServersCount = globalEndpoints.NEndpoints()
ci.Info.ServersCount = len(globalEndpoints.Hostnames())
ci.Info.MinioVersion = Version
si, _ := objectAPI.StorageInfo(ctx)