diff --git a/cmd/generic-handlers.go b/cmd/generic-handlers.go index 64edef0ce..fae7ae4b6 100644 --- a/cmd/generic-handlers.go +++ b/cmd/generic-handlers.go @@ -166,10 +166,7 @@ func setBrowserRedirectHandler(h http.Handler) http.Handler { } func shouldProxy() bool { - if newObjectLayerFn() == nil { - return true - } - return !globalIAMSys.Initialized() + return newObjectLayerFn() == nil } // Fetch redirect location if urlPath satisfies certain diff --git a/cmd/metacache-manager.go b/cmd/metacache-manager.go index 3b53ee3f6..9ed167c4d 100644 --- a/cmd/metacache-manager.go +++ b/cmd/metacache-manager.go @@ -60,8 +60,8 @@ func (m *metacacheManager) initManager() { time.Sleep(time.Second) objAPI = newObjectLayerFn() } + if !globalIsErasure { - logger.Info("metacacheManager was initialized in non-erasure mode, skipping save") return }