|
|
|
@ -96,6 +96,10 @@ func ValidateGatewayArguments(serverAddr, endpointAddr string) error { |
|
|
|
|
|
|
|
|
|
// StartGateway - handler for 'minio gateway <name>'.
|
|
|
|
|
func StartGateway(ctx *cli.Context, gw Gateway) { |
|
|
|
|
// This is only to uniquely identify each gateway deployments.
|
|
|
|
|
globalDeploymentID = env.Get("MINIO_GATEWAY_DEPLOYMENT_ID", mustGetUUID()) |
|
|
|
|
logger.SetDeploymentID(globalDeploymentID) |
|
|
|
|
|
|
|
|
|
if gw == nil { |
|
|
|
|
logger.FatalIf(errUnexpected, "Gateway implementation not initialized") |
|
|
|
|
} |
|
|
|
@ -260,9 +264,6 @@ func StartGateway(ctx *cli.Context, gw Gateway) { |
|
|
|
|
// is only enabled for "NAS" gateway.
|
|
|
|
|
globalConfigSys.WatchConfigNASDisk(GlobalContext, newObject) |
|
|
|
|
} |
|
|
|
|
// This is only to uniquely identify each gateway deployments.
|
|
|
|
|
globalDeploymentID = env.Get("MINIO_GATEWAY_DEPLOYMENT_ID", mustGetUUID()) |
|
|
|
|
logger.SetDeploymentID(globalDeploymentID) |
|
|
|
|
|
|
|
|
|
if globalEtcdClient != nil { |
|
|
|
|
// **** WARNING ****
|
|
|
|
|