From cf428f1188c949291fdd2c4177cd7ea4e90f6d4d Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 3 Aug 2022 05:46:31 -0700 Subject: [PATCH] support in-place rewrite of objects in heal and convert the format (#4175) --- cmd/admin-heal.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/admin-heal.go b/cmd/admin-heal.go index 68bdcc59..39e32561 100644 --- a/cmd/admin-heal.go +++ b/cmd/admin-heal.go @@ -69,6 +69,10 @@ var adminHealFlags = []cli.Flag{ Name: "storage-class", Usage: "show server/disks failure tolerance with the given storage class", }, + cli.BoolFlag{ + Name: "rewrite", + Usage: "rewrite objects from older to newer format", + }, cli.BoolFlag{ Name: "verbose, v", Usage: "show verbose information", @@ -631,6 +635,7 @@ func mainAdminHeal(ctx *cli.Context) error { Remove: ctx.Bool("remove"), Recursive: ctx.Bool("recursive"), DryRun: ctx.Bool("dry-run"), + Recreate: ctx.Bool("rewrite"), } forceStart := ctx.Bool("force-start")