mirror of
https://github.com/nginx/nginx.git
synced 2025-06-09 19:12:47 +08:00
Slight optimization in ngx_http_upstream_add(): replaced an expression
known to be constant with the constant value.
This commit is contained in:
parent
b163010872
commit
45d2ae646b
@ -4433,7 +4433,7 @@ ngx_http_upstream_add(ngx_conf_t *cf, ngx_url_t *u, ngx_uint_t flags)
|
|||||||
ngx_memzero(us, sizeof(ngx_http_upstream_server_t));
|
ngx_memzero(us, sizeof(ngx_http_upstream_server_t));
|
||||||
|
|
||||||
us->addrs = u->addrs;
|
us->addrs = u->addrs;
|
||||||
us->naddrs = u->naddrs;
|
us->naddrs = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
uscfp = ngx_array_push(&umcf->upstreams);
|
uscfp = ngx_array_push(&umcf->upstreams);
|
||||||
|
Loading…
Reference in New Issue
Block a user