fs/xl: Log warning if cache config specified (#8251)

in non-gateway mode.
This commit is contained in:
poornas 2019-09-16 19:55:52 -07:00 committed by Harshavardhana
parent 5392eee250
commit 04b92124c5

View File

@ -346,6 +346,9 @@ func serverMain(ctx *cli.Context) {
logger.Fatal(err, "Unable to initialize policy system")
}
if globalIsDiskCacheEnabled {
logger.StartupMessage(colorRed(colorBold("Disk caching is allowed only for gateway deployments")))
}
// Create new lifecycle system.
globalLifecycleSys = NewLifecycleSys()