From 8dd3c41b2a7d8bde9fecf692ef7d723ab107f91d Mon Sep 17 00:00:00 2001 From: Poorna Date: Tue, 25 Oct 2022 23:32:37 -0700 Subject: [PATCH] allow MakeBucket errors to be handled lazily (#15945) remote error is not required to be passed back to the client - this is mostly because we have healing that should eventually, catch up on this and heal the bucket. --- cmd/bucket-handlers.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/bucket-handlers.go b/cmd/bucket-handlers.go index d6e2cbb1c..828be195d 100644 --- a/cmd/bucket-handlers.go +++ b/cmd/bucket-handlers.go @@ -858,10 +858,7 @@ func (api objectAPIHandlers) PutBucketHandler(w http.ResponseWriter, r *http.Req globalNotificationSys.LoadBucketMetadata(GlobalContext, bucket) // Call site replication hook - if err := globalSiteReplicationSys.MakeBucketHook(ctx, bucket, opts); err != nil { - writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) - return - } + globalSiteReplicationSys.MakeBucketHook(ctx, bucket, opts) // Make sure to add Location information here only for bucket if cp := pathClean(r.URL.Path); cp != "" {