1
0
mirror of https://github.com/minio/mc.git synced 2026-01-04 02:44:40 +03:00

support in-place rewrite of objects in heal and convert the format (#4175)

This commit is contained in:
Harshavardhana
2022-08-03 05:46:31 -07:00
committed by GitHub
parent 69c0129cc7
commit cf428f1188

View File

@@ -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")