From 712dfa40cdb31d225b4d9f6efad527ff9fc9d96d Mon Sep 17 00:00:00 2001 From: Poorna Date: Thu, 10 Mar 2022 00:04:34 -0800 Subject: [PATCH] Add missing site replication hook for clearing sse config (#14512) --- cmd/bucket-encryption-handlers.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cmd/bucket-encryption-handlers.go b/cmd/bucket-encryption-handlers.go index fa8df219c..6d084b5b1 100644 --- a/cmd/bucket-encryption-handlers.go +++ b/cmd/bucket-encryption-handlers.go @@ -206,6 +206,15 @@ func (api objectAPIHandlers) DeleteBucketEncryptionHandler(w http.ResponseWriter writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) return } - + // Call site replication hook. + // + if err = globalSiteReplicationSys.BucketMetaHook(ctx, madmin.SRBucketMeta{ + Type: madmin.SRBucketMetaTypeSSEConfig, + Bucket: bucket, + SSEConfig: nil, + }); err != nil { + writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL) + return + } writeSuccessNoContent(w) }