S3 Gateway: Handle restricted access credentials (#7757)

This commit is contained in:
Harshavardhana
2019-06-07 15:49:13 -07:00
committed by kannappanr
parent 6d89435356
commit cb1566c6e6
5 changed files with 69 additions and 17 deletions
+3 -3
View File
@@ -148,6 +148,9 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
initNSLock(false) // Enable local namespace lock.
// Set when gateway is enabled
globalIsGateway = true
router := mux.NewRouter().SkipClean(true)
if globalEtcdClient != nil {
@@ -304,9 +307,6 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
printGatewayStartupMessage(getAPIEndpoints(), gatewayName)
}
// Set when gateway is enabled
globalIsGateway = true
// Set uptime time after object layer has initialized.
globalBootTime = UTCNow()