mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
rename server sets to server pools
This commit is contained in:
@@ -524,12 +524,12 @@ func serverMain(ctx *cli.Context) {
|
||||
}
|
||||
|
||||
// Initialize object layer with the supplied disks, objectLayer is nil upon any error.
|
||||
func newObjectLayer(ctx context.Context, endpointServerSets EndpointServerSets) (newObject ObjectLayer, err error) {
|
||||
func newObjectLayer(ctx context.Context, endpointServerPools EndpointServerPools) (newObject ObjectLayer, err error) {
|
||||
// For FS only, directly use the disk.
|
||||
if endpointServerSets.NEndpoints() == 1 {
|
||||
if endpointServerPools.NEndpoints() == 1 {
|
||||
// Initialize new FS object layer.
|
||||
return NewFSObjectLayer(endpointServerSets[0].Endpoints[0].Path)
|
||||
return NewFSObjectLayer(endpointServerPools[0].Endpoints[0].Path)
|
||||
}
|
||||
|
||||
return newErasureServerSets(ctx, endpointServerSets)
|
||||
return newErasureServerPools(ctx, endpointServerPools)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user