diff --git a/cmd/handler-utils.go b/cmd/handler-utils.go index 0b44fb611..79a06a94e 100644 --- a/cmd/handler-utils.go +++ b/cmd/handler-utils.go @@ -296,8 +296,8 @@ func collectAPIStats(api string, f http.HandlerFunc) http.HandlerFunc { bucket, _ := path2BucketObject(resource) - _, err = globalBucketMetadataSys.Get(bucket) // check if this bucket exists. - countBktStat := bucket != "" && bucket != minioReservedBucket && err == nil + meta, err := globalBucketMetadataSys.Get(bucket) // check if this bucket exists. + countBktStat := bucket != "" && bucket != minioReservedBucket && err == nil && !meta.Created.IsZero() if countBktStat { globalBucketHTTPStats.updateHTTPStats(bucket, api, nil) }