@ -653,12 +653,21 @@ func (api objectAPIHandlers) DeleteBucketHandler(w http.ResponseWriter, r *http.
// Delete bucket access policy, if present - ignore any errors.
// Delete bucket access policy, if present - ignore any errors.
_ = removeBucketPolicy ( bucket , objectAPI )
_ = removeBucketPolicy ( bucket , objectAPI )
// Notify all peers (including self) to update in-memory state
S3PeersUpdateBucketPolicy ( bucket , policyChange { true , nil } )
// Delete notification config, if present - ignore any errors.
// Delete notification config, if present - ignore any errors.
_ = removeNotificationConfig ( bucket , objectAPI )
_ = removeNotificationConfig ( bucket , objectAPI )
// Notify all peers (including self) to update in-memory state
S3PeersUpdateBucketNotification ( bucket , nil )
// Delete listener config, if present - ignore any errors.
// Delete listener config, if present - ignore any errors.
_ = removeListenerConfig ( bucket , objectAPI )
_ = removeListenerConfig ( bucket , objectAPI )
// Notify all peers (including self) to update in-memory state
S3PeersUpdateBucketListener ( bucket , [ ] listenerConfig { } )
// Write success response.
// Write success response.
writeSuccessNoContent ( w )
writeSuccessNoContent ( w )
}
}