Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open ngx_http_upstream_rbtree_lookup as api #1868

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/http/ngx_http_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,6 @@ static ngx_int_t ngx_http_upstream_ssl_certificate(ngx_http_request_t *r,
#if (NGX_HTTP_UPSTREAM_RBTREE)
static void ngx_http_upstream_rbtree_insert_value(ngx_rbtree_node_t *temp,
ngx_rbtree_node_t *node, ngx_rbtree_node_t *sentinel);

static ngx_http_upstream_srv_conf_t *
ngx_http_upstream_rbtree_lookup(ngx_http_upstream_main_conf_t *umcf,
ngx_str_t *host);
#endif

static ngx_http_upstream_header_t ngx_http_upstream_headers_in[] = {
Expand Down Expand Up @@ -6847,7 +6843,7 @@ ngx_http_upstream_rbtree_insert_value(ngx_rbtree_node_t *temp,
}


static ngx_http_upstream_srv_conf_t *
ngx_http_upstream_srv_conf_t *
chobits marked this conversation as resolved.
Show resolved Hide resolved
ngx_http_upstream_rbtree_lookup(ngx_http_upstream_main_conf_t *umcf,
ngx_str_t *host)
{
Expand Down
6 changes: 6 additions & 0 deletions src/http/ngx_http_upstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,12 @@ void ngx_http_upstream_check_delete_dynamic_peer(ngx_str_t *name,

#endif

#if (NGX_HTTP_UPSTREAM_RBTREE)
ngx_http_upstream_srv_conf_t *
ngx_http_upstream_rbtree_lookup(ngx_http_upstream_main_conf_t *umcf,
ngx_str_t *host);
#endif

extern ngx_module_t ngx_http_upstream_module;
extern ngx_conf_bitmask_t ngx_http_upstream_cache_method_mask[];
extern ngx_conf_bitmask_t ngx_http_upstream_ignore_headers_masks[];
Expand Down