mirror of
https://github.com/minio/minio.git
synced 2025-04-17 01:10:29 -04:00
Remove size query parameter from PerfInfo handler (#8258)
This commit is contained in:
parent
04b92124c5
commit
31bee6b6ed
@ -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…
x
Reference in New Issue
Block a user