fix: report effective bucket quotas in metrics

Signed-off-by: mr javad seydi <seydi.birjand@gmail.com>
This commit is contained in:
mr javad seydi
2026-09-05 21:22:07 +03:30
parent f0bd164b92
commit 0db4bf3b00
6 changed files with 104 additions and 22 deletions
+10 -1
View File
@@ -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
}
}