From acc3a2fe2306d5f3669e5be47f681f51a7a7679e Mon Sep 17 00:00:00 2001 From: Kaviraj Kanagaraj Date: Fri, 29 Jul 2022 10:07:06 +0200 Subject: [PATCH] chore(groupcache): Fix panic with stats collector wrapper (#6798) * chore(groupcache): Fix panic with stats collector wrapper Signed-off-by: Kaviraj * update Signed-off-by: Kaviraj --- pkg/storage/chunk/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/storage/chunk/cache/cache.go b/pkg/storage/chunk/cache/cache.go index 66590ff749..456ee35aa1 100644 --- a/pkg/storage/chunk/cache/cache.go +++ b/pkg/storage/chunk/cache/cache.go @@ -90,7 +90,7 @@ func IsRedisSet(cfg Config) bool { } func IsGroupCacheSet(cfg Config) bool { - return cfg.EnableGroupCache + return cfg.EnableGroupCache && !cfg.EnableFifoCache } // IsCacheConfigured determines if memcached, redis, or groupcache have been configured