mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
Prioritize HTTP requests over Heal (#6468)
Additionally also heal 256 objects at any given time in parallel. Fixes #6196 Fixes #6241
This commit is contained in:
committed by
kannappanr
parent
b729a4e83c
commit
6fe9a613c0
@@ -168,6 +168,18 @@ func NewEndpoint(arg string) (ep Endpoint, e error) {
|
||||
// EndpointList - list of same type of endpoint.
|
||||
type EndpointList []Endpoint
|
||||
|
||||
// Nodes - returns number of unique servers.
|
||||
func (endpoints EndpointList) Nodes() int {
|
||||
uniqueNodes := set.NewStringSet()
|
||||
for _, endpoint := range endpoints {
|
||||
if uniqueNodes.Contains(endpoint.Host) {
|
||||
continue
|
||||
}
|
||||
uniqueNodes.Add(endpoint.Host)
|
||||
}
|
||||
return len(uniqueNodes)
|
||||
}
|
||||
|
||||
// IsHTTPS - returns true if secure for URLEndpointType.
|
||||
func (endpoints EndpointList) IsHTTPS() bool {
|
||||
return endpoints[0].IsHTTPS()
|
||||
|
||||
Reference in New Issue
Block a user