mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
parent
ae4ded7fd1
commit
2f564437ae
4
cmd/config/cache/lookup.go
vendored
4
cmd/config/cache/lookup.go
vendored
@ -222,6 +222,10 @@ func LookupConfig(kvs config.KVS) (Config, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return cfg, err
|
return cfg, err
|
||||||
}
|
}
|
||||||
|
if cfg.After > 0 && cfg.CommitWriteback {
|
||||||
|
err := errors.New("cache after cannot be used with commit writeback")
|
||||||
|
return cfg, config.ErrInvalidCacheSetting(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return cfg, nil
|
return cfg, nil
|
||||||
|
@ -108,6 +108,11 @@ var (
|
|||||||
"MINIO_CACHE_COMMIT: Valid expected value is `writeback` or `writethrough`",
|
"MINIO_CACHE_COMMIT: Valid expected value is `writeback` or `writethrough`",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ErrInvalidCacheSetting = newErrFn(
|
||||||
|
"Incompatible cache setting",
|
||||||
|
"Please check the passed value",
|
||||||
|
"MINIO_CACHE_AFTER cannot be used with MINIO_CACHE_COMMIT setting",
|
||||||
|
)
|
||||||
ErrInvalidRotatingCredentialsBackendEncrypted = newErrFn(
|
ErrInvalidRotatingCredentialsBackendEncrypted = newErrFn(
|
||||||
"Invalid rotating credentials",
|
"Invalid rotating credentials",
|
||||||
"Please set correct rotating credentials in the environment for decryption",
|
"Please set correct rotating credentials in the environment for decryption",
|
||||||
|
Loading…
Reference in New Issue
Block a user