mirror of
https://github.com/minio/minio.git
synced 2025-01-25 13:43:17 -05:00
parent
b4a23f720e
commit
81d7531f1f
@ -296,8 +296,8 @@ func collectAPIStats(api string, f http.HandlerFunc) http.HandlerFunc {
|
|||||||
|
|
||||||
bucket, _ := path2BucketObject(resource)
|
bucket, _ := path2BucketObject(resource)
|
||||||
|
|
||||||
_, err = globalBucketMetadataSys.Get(bucket) // check if this bucket exists.
|
meta, err := globalBucketMetadataSys.Get(bucket) // check if this bucket exists.
|
||||||
countBktStat := bucket != "" && bucket != minioReservedBucket && err == nil
|
countBktStat := bucket != "" && bucket != minioReservedBucket && err == nil && !meta.Created.IsZero()
|
||||||
if countBktStat {
|
if countBktStat {
|
||||||
globalBucketHTTPStats.updateHTTPStats(bucket, api, nil)
|
globalBucketHTTPStats.updateHTTPStats(bucket, api, nil)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user