Disallow writeback caching with cache_after (#11002)

fixes #10974
This commit is contained in:
Poorna Krishnamoorthy
2020-11-30 20:53:27 -08:00
committed by GitHub
parent ae4ded7fd1
commit 2f564437ae
2 changed files with 9 additions and 0 deletions

View File

@@ -108,6 +108,11 @@ var (
"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(
"Invalid rotating credentials",
"Please set correct rotating credentials in the environment for decryption",