mirror of
https://github.com/pgsty/minio.git
synced 2026-07-24 22:46:16 +03:00
fix: bucket quota clear and honor existing quota config (#17988)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user