mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: no need to proxy if IAM not initialized (#12416)
IAM not initialized doesn't mean we can't still read the content from the disk, we should just allow the request to go-through if object layer is initialized.
This commit is contained in:
parent
7148c2490a
commit
bf87c4b1e4
@ -166,10 +166,7 @@ func setBrowserRedirectHandler(h http.Handler) http.Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func shouldProxy() bool {
|
func shouldProxy() bool {
|
||||||
if newObjectLayerFn() == nil {
|
return newObjectLayerFn() == nil
|
||||||
return true
|
|
||||||
}
|
|
||||||
return !globalIAMSys.Initialized()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch redirect location if urlPath satisfies certain
|
// Fetch redirect location if urlPath satisfies certain
|
||||||
|
@ -60,8 +60,8 @@ func (m *metacacheManager) initManager() {
|
|||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
objAPI = newObjectLayerFn()
|
objAPI = newObjectLayerFn()
|
||||||
}
|
}
|
||||||
|
|
||||||
if !globalIsErasure {
|
if !globalIsErasure {
|
||||||
logger.Info("metacacheManager was initialized in non-erasure mode, skipping save")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user