1
0
mirror of https://github.com/minio/mc.git synced 2025-11-10 13:42:32 +03:00

Add 'mc admin update' command (#2857)

Also this PR deprecates `service status` command
This commit is contained in:
Harshavardhana
2019-08-28 15:57:25 -07:00
committed by GitHub
parent af7d551010
commit bd7564a2d4
11 changed files with 179 additions and 202 deletions

View File

@@ -121,7 +121,7 @@ func mainAdminTrace(ctx *cli.Context) error {
defer close(doneCh)
// Start listening on all trace activity.
traceCh := client.Trace(all, errfltr, doneCh)
traceCh := client.ServiceTrace(all, errfltr, doneCh)
for traceInfo := range traceCh {
if traceInfo.Err != nil {
fatalIf(probe.NewError(traceInfo.Err), "Cannot listen to http trace")
@@ -149,7 +149,7 @@ type shortTraceMsg struct {
}
type traceMessage struct {
madmin.TraceInfo
madmin.ServiceTraceInfo
}
type requestInfo struct {
@@ -182,7 +182,7 @@ type trace struct {
}
// return a struct with minimal trace info.
func shortTrace(ti madmin.TraceInfo) shortTraceMsg {
func shortTrace(ti madmin.ServiceTraceInfo) shortTraceMsg {
s := shortTraceMsg{}
t := ti.Trace
s.Time = t.ReqInfo.Time