Mercurial > hg > nginx
changeset 1418:acb1f441e7b2
update ip_hash to "backup" option
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 24 Aug 2007 15:30:35 +0000 |
parents | b23a80f9a7b8 |
children | 79f033a89dd4 |
files | src/http/modules/ngx_http_upstream_ip_hash_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_upstream_ip_hash_module.c Fri Aug 24 15:29:50 2007 +0000 +++ b/src/http/modules/ngx_http_upstream_ip_hash_module.c Fri Aug 24 15:30:35 2007 +0000 @@ -140,7 +140,7 @@ /* TODO: cached */ - if (iphp->tries > 20 || iphp->rrp.peers->number == 1) { + if (iphp->tries > 20 || iphp->rrp.peers->single) { return iphp->get_rr_peer(pc, &iphp->rrp); }