mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
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:
@@ -315,7 +315,7 @@ func (l EndpointServerPools) HTTPS() bool {
|
||||
return l[0].Endpoints.HTTPS()
|
||||
}
|
||||
|
||||
// NEndpoints - returns all nodes count
|
||||
// NEndpoints - returns number of endpoints
|
||||
func (l EndpointServerPools) NEndpoints() (count int) {
|
||||
for _, ep := range l {
|
||||
count += len(ep.Endpoints)
|
||||
|
||||
Reference in New Issue
Block a user