Change md5Sum to etag (#4399)

This commit is contained in:
Krishna Srinivas
2017-05-22 20:02:58 -07:00
committed by Harshavardhana
parent 0dab038858
commit 2aa76e7407
3 changed files with 12 additions and 14 deletions

View File

@@ -355,18 +355,18 @@ func gatewayMain(ctx *cli.Context, backendType gatewayBackend) {
}
serverAddr := ctx.String("address")
endpointAddr := ctx.Args().Get(0)
endpointAddr := ctx.Args().First()
err := validateGatewayArguments(serverAddr, endpointAddr)
fatalIf(err, "Invalid argument")
// Create certs path for SSL configuration.
fatalIf(createConfigDir(), "Unable to create configuration directory")
initNSLock(false) // Enable local namespace lock.
newObject, err := newGatewayLayer(backendType, ctx.Args()[1:])
fatalIf(err, "Unable to initialize gateway layer")
initNSLock(false) // Enable local namespace lock.
router := mux.NewRouter().SkipClean(true)
// credentials Envs are set globally.
@@ -432,9 +432,12 @@ func gatewayMain(ctx *cli.Context, backendType gatewayBackend) {
// Prints the formatted startup message once object layer is initialized.
if !quietFlag {
mode := ""
if gatewayBackend(backendType) == azureBackend {
switch gatewayBackend(backendType) {
case azureBackend:
mode = globalMinioModeGatewayAzure
} else if gatewayBackend(backendType) == s3Backend {
case gcsBackend:
mode = globalMinioModeGatewayGCS
case s3Backend:
mode = globalMinioModeGatewayS3
}
checkUpdate(mode)