mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -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)
|
globalNotificationSys.LoadBucketMetadata(GlobalContext, bucket)
|
||||||
|
|
||||||
// Call site replication hook
|
// Call site replication hook
|
||||||
if err := globalSiteReplicationSys.MakeBucketHook(ctx, bucket, opts); err != nil {
|
globalSiteReplicationSys.MakeBucketHook(ctx, bucket, opts)
|
||||||
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make sure to add Location information here only for bucket
|
// Make sure to add Location information here only for bucket
|
||||||
if cp := pathClean(r.URL.Path); cp != "" {
|
if cp := pathClean(r.URL.Path); cp != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user