From c2530bd50a8accbbf3fcab94d526a01be9c0f42a Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Fri, 20 Dec 2024 12:19:31 +0100 Subject: [PATCH] Use ServiceUnfreezeV2, but keep old restart. --- cmd/admin-service-restart.go | 1 + cmd/admin-service-unfreeze.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/admin-service-restart.go b/cmd/admin-service-restart.go index cf82bd1b43..5795936158 100644 --- a/cmd/admin-service-restart.go +++ b/cmd/admin-service-restart.go @@ -269,6 +269,7 @@ func mainAdminServiceRestart(ctx *cli.Context) error { }) if e != nil { // Attempt an older API server might be old + //lint:ignore SA1019 We explicitly want old API. e = client.ServiceRestart(ctxt) } fatalIf(probe.NewError(e), "Unable to restart the server.") diff --git a/cmd/admin-service-unfreeze.go b/cmd/admin-service-unfreeze.go index cf45a359db..3bb5550ee8 100644 --- a/cmd/admin-service-unfreeze.go +++ b/cmd/admin-service-unfreeze.go @@ -74,7 +74,7 @@ func checkAdminServiceUnfreezeSyntax(ctx *cli.Context) { } func mainAdminServiceUnfreeze(ctx *cli.Context) error { - // Validate serivce unfreeze syntax. + // Validate service unfreeze syntax. checkAdminServiceUnfreezeSyntax(ctx) // Set color. @@ -89,7 +89,7 @@ func mainAdminServiceUnfreeze(ctx *cli.Context) error { fatalIf(err, "Unable to initialize admin connection.") // Unfreeze the specified MinIO server - fatalIf(probe.NewError(client.ServiceUnfreeze(globalContext)), "Unable to unfreeze the server.") + fatalIf(probe.NewError(client.ServiceUnfreezeV2(globalContext)), "Unable to unfreeze the server.") // Success.. printMsg(serviceUnfreezeCommand{Status: "success", ServerURL: aliasedURL})