Mercurial > hg > nginx
comparison src/http/modules/ngx_http_upstream_ip_hash_module.c @ 5173:5373be93c0be
Upstream: warn if multiple non-stackable balancers are installed.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 12 Apr 2013 19:12:13 +0000 |
parents | 441b2941a506 |
children | 2fda9065d0f4 |
comparison
equal
deleted
inserted
replaced
5172:a4d21534cbf4 | 5173:5373be93c0be |
---|---|
250 { | 250 { |
251 ngx_http_upstream_srv_conf_t *uscf; | 251 ngx_http_upstream_srv_conf_t *uscf; |
252 | 252 |
253 uscf = ngx_http_conf_get_module_srv_conf(cf, ngx_http_upstream_module); | 253 uscf = ngx_http_conf_get_module_srv_conf(cf, ngx_http_upstream_module); |
254 | 254 |
255 if (uscf->peer.init_upstream) { | |
256 ngx_conf_log_error(NGX_LOG_WARN, cf, 0, | |
257 "load balancing method redefined"); | |
258 } | |
259 | |
255 uscf->peer.init_upstream = ngx_http_upstream_init_ip_hash; | 260 uscf->peer.init_upstream = ngx_http_upstream_init_ip_hash; |
256 | 261 |
257 uscf->flags = NGX_HTTP_UPSTREAM_CREATE | 262 uscf->flags = NGX_HTTP_UPSTREAM_CREATE |
258 |NGX_HTTP_UPSTREAM_WEIGHT | 263 |NGX_HTTP_UPSTREAM_WEIGHT |
259 |NGX_HTTP_UPSTREAM_MAX_FAILS | 264 |NGX_HTTP_UPSTREAM_MAX_FAILS |