From df16231cf9963fa29430b523275f4e15ce147e8b Mon Sep 17 00:00:00 2001 From: bubele Date: Fri, 20 Feb 2026 19:02:00 +0100 Subject: [PATCH] adding quick hack for fixing no output then object are GLACIER objects. without the lines a "mc stat" on a object which has transitioned to storage class GLACIER works. without it silently gives zero output! --- cmd/stat.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/stat.go b/cmd/stat.go index 218d733c0b..237dcab6c3 100644 --- a/cmd/stat.go +++ b/cmd/stat.go @@ -324,9 +324,10 @@ func statURL(ctx context.Context, targetURL, versionID string, timeRef time.Time } found++ - if content.StorageClass == s3StorageClassGlacier { - continue - } + ////(pc) not sure why this is here, it at least cause a zero output on GLACIER objects. + //if content.StorageClass == s3StorageClassGlacier { + // continue + //} url := getStandardizedURL(targetAlias + getKey(content)) standardizedURL := getStandardizedURL(targetURL)