mirror of
https://github.com/nginx/nginx.git
synced 2026-06-03 22:03:00 -04:00
Upstream hash: fixed missing upstream name initialization.
This commit is contained in:
parent
7f57804fe2
commit
f8a9d528df
2 changed files with 2 additions and 0 deletions
|
|
@ -571,6 +571,7 @@ ngx_http_upstream_get_chash_peer(ngx_peer_connection_t *pc, void *data)
|
|||
hp->tries++;
|
||||
|
||||
if (hp->tries >= points->number) {
|
||||
pc->name = hp->rrp.peers->name;
|
||||
ngx_http_upstream_rr_peers_unlock(hp->rrp.peers);
|
||||
return NGX_BUSY;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -572,6 +572,7 @@ ngx_stream_upstream_get_chash_peer(ngx_peer_connection_t *pc, void *data)
|
|||
hp->tries++;
|
||||
|
||||
if (hp->tries >= points->number) {
|
||||
pc->name = hp->rrp.peers->name;
|
||||
ngx_stream_upstream_rr_peers_unlock(hp->rrp.peers);
|
||||
return NGX_BUSY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue