mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
rename zones to serverSets to avoid terminology conflict (#10679)
we are bringing in availability zones, we should avoid zones as per server expansion concept.
This commit is contained in:
@@ -516,12 +516,12 @@ func serverMain(ctx *cli.Context) {
|
||||
}
|
||||
|
||||
// Initialize object layer with the supplied disks, objectLayer is nil upon any error.
|
||||
func newObjectLayer(ctx context.Context, endpointZones EndpointZones) (newObject ObjectLayer, err error) {
|
||||
func newObjectLayer(ctx context.Context, endpointServerSets EndpointServerSets) (newObject ObjectLayer, err error) {
|
||||
// For FS only, directly use the disk.
|
||||
if endpointZones.NEndpoints() == 1 {
|
||||
if endpointServerSets.NEndpoints() == 1 {
|
||||
// Initialize new FS object layer.
|
||||
return NewFSObjectLayer(endpointZones[0].Endpoints[0].Path)
|
||||
return NewFSObjectLayer(endpointServerSets[0].Endpoints[0].Path)
|
||||
}
|
||||
|
||||
return newErasureZones(ctx, endpointZones)
|
||||
return newErasureServerSets(ctx, endpointServerSets)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user