mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
enable --compat flag by default (#9326)
if needed use --no-compat to disable md5sum while verifying any performance numbers. bring back --compat behavior as default to avoid additional documentation and confusing behavior, as we are working towards improving md5sum to be faster on AVX instructions, enabling this should be hardly a problem in future versions of MinIO. fixes #8012 fixes #7859 fixes #7642
This commit is contained in:
20
cmd/main.go
20
cmd/main.go
@@ -29,10 +29,12 @@ import (
|
||||
|
||||
// GlobalFlags - global flags for minio.
|
||||
var GlobalFlags = []cli.Flag{
|
||||
// Deprecated flag, so its hidden now - existing deployments will keep working.
|
||||
cli.StringFlag{
|
||||
Name: "config-dir, C",
|
||||
Value: defaultConfigDir.Get(),
|
||||
Usage: "[DEPRECATED] path to legacy configuration directory",
|
||||
Name: "config-dir, C",
|
||||
Value: defaultConfigDir.Get(),
|
||||
Usage: "[DEPRECATED] path to legacy configuration directory",
|
||||
Hidden: true,
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "certs-dir, S",
|
||||
@@ -51,9 +53,17 @@ var GlobalFlags = []cli.Flag{
|
||||
Name: "json",
|
||||
Usage: "output server logs and startup information in json format",
|
||||
},
|
||||
// Deprecated flag, so its hidden now, existing deployments will keep working.
|
||||
cli.BoolFlag{
|
||||
Name: "compat",
|
||||
Usage: "enable strict S3 compatibility by turning off certain performance optimizations",
|
||||
Name: "compat",
|
||||
Usage: "enable strict S3 compatibility by turning off certain performance optimizations",
|
||||
Hidden: true,
|
||||
},
|
||||
// This flag is hidden and to be used only during certain performance testing.
|
||||
cli.BoolFlag{
|
||||
Name: "no-compat",
|
||||
Usage: "disable strict S3 compatibility by turning on certain performance optimizations",
|
||||
Hidden: true,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user