From d55b6b9909fca0bc14b3b976aa5470b08bb303cd Mon Sep 17 00:00:00 2001 From: Poorna Date: Tue, 19 Dec 2023 13:22:47 -0800 Subject: [PATCH] Fix quota config replication for SR (#18684) Fixing regression introduced by PR #17988 --- cmd/admin-bucket-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/admin-bucket-handlers.go b/cmd/admin-bucket-handlers.go index ec72ef913..509ae364f 100644 --- a/cmd/admin-bucket-handlers.go +++ b/cmd/admin-bucket-handlers.go @@ -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 }