mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
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.
This commit is contained in:
parent
4523da6543
commit
8dd3c41b2a
@ -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 != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user