fix: bucket quota clear and honor existing quota config (#17988)

This commit is contained in:
Harshavardhana
2023-09-06 19:03:58 -07:00
committed by GitHub
parent ad69b9907f
commit f7ca6c63c2
4 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ func (a adminAPIHandlers) PutBucketQuotaConfigHandler(w http.ResponseWriter, r *
Quota: data,
UpdatedAt: updatedAt,
}
if quotaConfig.Quota == 0 {
if quotaConfig.Size == 0 || quotaConfig.Quota == 0 {
bucketMeta.Quota = nil
}