From 04b92124c5c1dcdaa96cf9a06b89db0a6af18604 Mon Sep 17 00:00:00 2001 From: poornas Date: Mon, 16 Sep 2019 19:55:52 -0700 Subject: [PATCH] fs/xl: Log warning if cache config specified (#8251) in non-gateway mode. --- cmd/server-main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/server-main.go b/cmd/server-main.go index 8773cb3a7..bf18c72c4 100644 --- a/cmd/server-main.go +++ b/cmd/server-main.go @@ -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()