# HG changeset patch # User Igor Sysoev # Date 1187969435 0 # Node ID acb1f441e7b22c6e9226da555aa6fa3bdf99ab6f # Parent b23a80f9a7b817d4a449ee189b4e2201d95e6f05 update ip_hash to "backup" option diff -r b23a80f9a7b8 -r acb1f441e7b2 src/http/modules/ngx_http_upstream_ip_hash_module.c --- 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); }