]> git.kaiwu.me - nginx.git/commitdiff
update ip_hash to "backup" option
authorIgor Sysoev <igor@sysoev.ru>
Fri, 24 Aug 2007 15:30:35 +0000 (15:30 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 24 Aug 2007 15:30:35 +0000 (15:30 +0000)
src/http/modules/ngx_http_upstream_ip_hash_module.c

index 9604d5f89e78d4e3ea1bef7bff2ac5fa0ab8dfd7..1d13481a9c72d64c6e4f7b9e9eb041bf6ce9e42e 100644 (file)
@@ -140,7 +140,7 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data)
 
     /* 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);
     }