fix: dangling objects on actual namespace (#10822)
This commit is contained in:
@@ -2242,9 +2242,15 @@ func generateTLSCertKey(host string) ([]byte, []byte, error) {
|
||||
|
||||
func mustGetZoneEndpoints(args ...string) EndpointServerSets {
|
||||
endpoints := mustGetNewEndpoints(args...)
|
||||
drivesPerSet := len(args)
|
||||
setCount := 1
|
||||
if len(args) >= 16 {
|
||||
drivesPerSet = 16
|
||||
setCount = len(args) / 16
|
||||
}
|
||||
return []ZoneEndpoints{{
|
||||
SetCount: 1,
|
||||
DrivesPerSet: len(args),
|
||||
SetCount: setCount,
|
||||
DrivesPerSet: drivesPerSet,
|
||||
Endpoints: endpoints,
|
||||
}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user