[nginx] svn commit: r4767 - trunk/src/http
ru at nginx.com
ru at nginx.com
Sun Jul 29 19:44:09 UTC 2012
Author: ru
Date: 2012-07-29 19:44:09 +0000 (Sun, 29 Jul 2012)
New Revision: 4767
URL: http://trac.nginx.org/nginx/changeset/4767/nginx
Log:
Slight optimization in ngx_http_upstream_add(): replaced an expression
known to be constant with the constant value.
Modified:
trunk/src/http/ngx_http_upstream.c
Modified: trunk/src/http/ngx_http_upstream.c
===================================================================
--- trunk/src/http/ngx_http_upstream.c 2012-07-29 19:38:25 UTC (rev 4766)
+++ trunk/src/http/ngx_http_upstream.c 2012-07-29 19:44:09 UTC (rev 4767)
@@ -4433,7 +4433,7 @@
ngx_memzero(us, sizeof(ngx_http_upstream_server_t));
us->addrs = u->addrs;
- us->naddrs = u->naddrs;
+ us->naddrs = 1;
}
uscfp = ngx_array_push(&umcf->upstreams);
More information about the nginx-devel
mailing list