comparison src/http/modules/ngx_http_upstream_hash_module.c @ 6697:52367732bcbc

Upstream hash: fixed missing upstream name initialization.
author Vladimir Homutov <vl@nginx.com>
date Fri, 16 Sep 2016 15:13:24 +0300
parents bf8b6534db3a
children 914d8a63dbad
comparison
equal deleted inserted replaced
6696:e83540f825cd 6697:52367732bcbc
569 569
570 hp->hash++; 570 hp->hash++;
571 hp->tries++; 571 hp->tries++;
572 572
573 if (hp->tries >= points->number) { 573 if (hp->tries >= points->number) {
574 pc->name = hp->rrp.peers->name;
574 ngx_http_upstream_rr_peers_unlock(hp->rrp.peers); 575 ngx_http_upstream_rr_peers_unlock(hp->rrp.peers);
575 return NGX_BUSY; 576 return NGX_BUSY;
576 } 577 }
577 } 578 }
578 579