Merge pull request #132 from mrjavadseydi/fix/issue-106-bucket-quota-metrics

fix: report effective bucket quotas in metrics
This commit is contained in:
Feng Ruohang
2026-09-07 09:54:01 +08:00
committed by GitHub
6 changed files with 104 additions and 22 deletions
+10 -1
View File
@@ -3873,7 +3873,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
}
}