Add NetPerfInfo() API in madmin (#8112)

This commit is contained in:
Bala FA
2019-08-31 02:57:53 +00:00
committed by kannappanr
parent 42e716a094
commit fa3546bb03
5 changed files with 118 additions and 6 deletions

View File

@@ -376,8 +376,7 @@ func (a adminAPIHandlers) PerfInfoHandler(w http.ResponseWriter, r *http.Request
}
}
storage := objectAPI.StorageInfo(ctx)
if !(storage.Backend.Type == BackendFS || storage.Backend.Type == BackendErasure) {
if !globalIsDistXL {
writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrMethodNotAllowed), r.URL)
return
}