Ignore:
Timestamp:
02/19/08 15:44:50 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master-v0.7, master-v0.6, memcached_hash, upstream_count_limit
Children:
11531c
Parents:
a64318
git-author:
Tomash Brechko <tomash.brechko@…> (02/19/08 15:44:50)
git-committer:
Tomash Brechko <tomash.brechko@…> (02/19/08 15:44:50)
Message:

Add optional variable $memcached_namespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/src/http/ngx_http_variables.c

    r0019fc r7bf8e1  
    13131313 
    13141314 
     1315static ngx_int_t 
     1316ngx_http_optional_variable(ngx_http_request_t *r, 
     1317    ngx_http_variable_value_t *v, uintptr_t data) 
     1318{ 
     1319    *v = ngx_http_variable_null_value; 
     1320    return NGX_OK; 
     1321} 
     1322 
     1323 
    13151324ngx_int_t 
    13161325ngx_http_variables_init_vars(ngx_conf_t *cf) 
     
    13741383        } 
    13751384 
     1385        if (ngx_strncmp(v[i].name.data, "memcached_namespace", 19) == 0) { 
     1386            v[i].get_handler = ngx_http_optional_variable; 
     1387 
     1388            continue; 
     1389        } 
     1390 
    13761391        ngx_log_error(NGX_LOG_EMERG, cf->log, 0, 
    13771392                      "unknown \"%V\" variable", &v[i].name); 
Note: See TracChangeset for help on using the changeset viewer.