Remove size query parameter from PerfInfo handler (#8258)

master
Krishnan Parthasarathi 5 years ago committed by kannappanr
parent 04b92124c5
commit 31bee6b6ed
  1. 2
      cmd/admin-router.go
  2. 1
      cmd/admin-server-info.go

@ -64,7 +64,7 @@ func registerAdminRouter(router *mux.Router, enableConfigOps, enableIAMOps bool)
} }
// Performance command - return performance details based on input type // Performance command - return performance details based on input type
adminV1Router.Methods(http.MethodGet).Path("/performance").HandlerFunc(httpTraceAll(adminAPI.PerfInfoHandler)).Queries("perfType", "{perfType:.*}").Queries("size", "{size:.*}") adminV1Router.Methods(http.MethodGet).Path("/performance").HandlerFunc(httpTraceAll(adminAPI.PerfInfoHandler)).Queries("perfType", "{perfType:.*}")
// Profiling operations // Profiling operations
adminV1Router.Methods(http.MethodPost).Path("/profiling/start").HandlerFunc(httpTraceAll(adminAPI.StartProfilingHandler)). adminV1Router.Methods(http.MethodPost).Path("/profiling/start").HandlerFunc(httpTraceAll(adminAPI.StartProfilingHandler)).

@ -109,5 +109,6 @@ func getLocalDrivesPerf(endpoints EndpointList, size int64, r *http.Request) mad
return madmin.ServerDrivesPerfInfo{ return madmin.ServerDrivesPerfInfo{
Addr: addr, Addr: addr,
Perf: dps, Perf: dps,
Size: size,
} }
} }

Loading…
Cancel
Save