Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 5617:68c6cc832c76
Macros used for initialization in ngx_http_core_init_main_conf().
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 19 Mar 2014 12:57:40 +0400 |
parents | 3a72b1805c52 |
children | d0e75244a18a |
comparison
equal
deleted
inserted
replaced
5616:b93db4e4ff77 | 5617:68c6cc832c76 |
---|---|
3430 static char * | 3430 static char * |
3431 ngx_http_core_init_main_conf(ngx_conf_t *cf, void *conf) | 3431 ngx_http_core_init_main_conf(ngx_conf_t *cf, void *conf) |
3432 { | 3432 { |
3433 ngx_http_core_main_conf_t *cmcf = conf; | 3433 ngx_http_core_main_conf_t *cmcf = conf; |
3434 | 3434 |
3435 if (cmcf->server_names_hash_max_size == NGX_CONF_UNSET_UINT) { | 3435 ngx_conf_init_uint_value(cmcf->server_names_hash_max_size, 512); |
3436 cmcf->server_names_hash_max_size = 512; | 3436 ngx_conf_init_uint_value(cmcf->server_names_hash_bucket_size, |
3437 } | 3437 ngx_cacheline_size); |
3438 | |
3439 if (cmcf->server_names_hash_bucket_size == NGX_CONF_UNSET_UINT) { | |
3440 cmcf->server_names_hash_bucket_size = ngx_cacheline_size; | |
3441 } | |
3442 | 3438 |
3443 cmcf->server_names_hash_bucket_size = | 3439 cmcf->server_names_hash_bucket_size = |
3444 ngx_align(cmcf->server_names_hash_bucket_size, ngx_cacheline_size); | 3440 ngx_align(cmcf->server_names_hash_bucket_size, ngx_cacheline_size); |
3445 | 3441 |
3446 | 3442 |
3447 if (cmcf->variables_hash_max_size == NGX_CONF_UNSET_UINT) { | 3443 ngx_conf_init_uint_value(cmcf->variables_hash_max_size, 512); |
3448 cmcf->variables_hash_max_size = 512; | 3444 ngx_conf_init_uint_value(cmcf->variables_hash_bucket_size, 64); |
3449 } | |
3450 | |
3451 if (cmcf->variables_hash_bucket_size == NGX_CONF_UNSET_UINT) { | |
3452 cmcf->variables_hash_bucket_size = 64; | |
3453 } | |
3454 | 3445 |
3455 cmcf->variables_hash_bucket_size = | 3446 cmcf->variables_hash_bucket_size = |
3456 ngx_align(cmcf->variables_hash_bucket_size, ngx_cacheline_size); | 3447 ngx_align(cmcf->variables_hash_bucket_size, ngx_cacheline_size); |
3457 | 3448 |
3458 if (cmcf->ncaptures) { | 3449 if (cmcf->ncaptures) { |