Changeset 6712:fd5c2781460b in nginx


Ignore:
Timestamp:
09/29/16 15:06:04 (4 years ago)
Author:
Maxim Dounin <mdounin@…>
Branch:
default
Phase:
public
Message:

Modules compatibility: upstream config field.

It is to be used to track version of an upstream configuration used for
request processing.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/http/ngx_http_upstream_round_robin.c

    r6705 r6712  
    261261    rrp->peers = us->peer.data;
    262262    rrp->current = NULL;
     263    rrp->config = 0;
    263264
    264265    n = rrp->peers->number;
     
    385386    rrp->peers = peers;
    386387    rrp->current = NULL;
     388    rrp->config = 0;
    387389
    388390    if (rrp->peers->number <= 8 * sizeof(uintptr_t)) {
  • src/http/ngx_http_upstream_round_robin.h

    r6708 r6712  
    123123
    124124typedef struct {
     125    ngx_uint_t                      config;
    125126    ngx_http_upstream_rr_peers_t   *peers;
    126127    ngx_http_upstream_rr_peer_t    *current;
  • src/stream/ngx_stream_upstream_round_robin.c

    r6706 r6712  
    266266    rrp->peers = us->peer.data;
    267267    rrp->current = NULL;
     268    rrp->config = 0;
    268269
    269270    n = rrp->peers->number;
     
    392393    rrp->peers = peers;
    393394    rrp->current = NULL;
     395    rrp->config = 0;
    394396
    395397    if (rrp->peers->number <= 8 * sizeof(uintptr_t)) {
  • src/stream/ngx_stream_upstream_round_robin.h

    r6708 r6712  
    123123
    124124typedef struct {
     125    ngx_uint_t                       config;
    125126    ngx_stream_upstream_rr_peers_t  *peers;
    126127    ngx_stream_upstream_rr_peer_t   *current;
Note: See TracChangeset for help on using the changeset viewer.