Fix quota config replication for SR (#18684)

Fixing regression introduced by PR #17988
This commit is contained in:
Poorna 2023-12-19 13:22:47 -08:00 committed by GitHub
parent f4389fb322
commit d55b6b9909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ func (a adminAPIHandlers) PutBucketQuotaConfigHandler(w http.ResponseWriter, r *
Quota: data,
UpdatedAt: updatedAt,
}
if quotaConfig.Size == 0 || quotaConfig.Quota == 0 {
if quotaConfig.Size == 0 && quotaConfig.Quota == 0 {
bucketMeta.Quota = nil
}