mirror of
https://github.com/pgsty/minio.git
synced 2026-09-10 04:24:03 +03:00
fix: report effective bucket quotas in metrics
Signed-off-by: mr javad seydi <seydi.birjand@gmail.com>
This commit is contained in:
+10
-1
@@ -3863,7 +3863,16 @@ func isBktQuotaCfgReplicated(total int, quotaCfgs []*madmin.BucketQuota) bool {
|
||||
prev = q
|
||||
continue
|
||||
}
|
||||
if prev.Quota != q.Quota || prev.Type != q.Type {
|
||||
if prev.Type != q.Type {
|
||||
return false
|
||||
}
|
||||
if prev.Type == madmin.HardQuota {
|
||||
if getBucketQuotaSize(prev) != getBucketQuotaSize(q) {
|
||||
return false
|
||||
}
|
||||
continue
|
||||
}
|
||||
if prev.Size != q.Size || prev.Quota != q.Quota {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user