mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
parent
b4a23f720e
commit
81d7531f1f
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user