mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 10:19:00 +08:00
Macros used for initialization in ngx_http_core_init_main_conf().
This commit is contained in:
parent
062e7a0042
commit
898ca36c33
@ -3432,25 +3432,16 @@ ngx_http_core_init_main_conf(ngx_conf_t *cf, void *conf)
|
|||||||
{
|
{
|
||||||
ngx_http_core_main_conf_t *cmcf = conf;
|
ngx_http_core_main_conf_t *cmcf = conf;
|
||||||
|
|
||||||
if (cmcf->server_names_hash_max_size == NGX_CONF_UNSET_UINT) {
|
ngx_conf_init_uint_value(cmcf->server_names_hash_max_size, 512);
|
||||||
cmcf->server_names_hash_max_size = 512;
|
ngx_conf_init_uint_value(cmcf->server_names_hash_bucket_size,
|
||||||
}
|
ngx_cacheline_size);
|
||||||
|
|
||||||
if (cmcf->server_names_hash_bucket_size == NGX_CONF_UNSET_UINT) {
|
|
||||||
cmcf->server_names_hash_bucket_size = ngx_cacheline_size;
|
|
||||||
}
|
|
||||||
|
|
||||||
cmcf->server_names_hash_bucket_size =
|
cmcf->server_names_hash_bucket_size =
|
||||||
ngx_align(cmcf->server_names_hash_bucket_size, ngx_cacheline_size);
|
ngx_align(cmcf->server_names_hash_bucket_size, ngx_cacheline_size);
|
||||||
|
|
||||||
|
|
||||||
if (cmcf->variables_hash_max_size == NGX_CONF_UNSET_UINT) {
|
ngx_conf_init_uint_value(cmcf->variables_hash_max_size, 512);
|
||||||
cmcf->variables_hash_max_size = 512;
|
ngx_conf_init_uint_value(cmcf->variables_hash_bucket_size, 64);
|
||||||
}
|
|
||||||
|
|
||||||
if (cmcf->variables_hash_bucket_size == NGX_CONF_UNSET_UINT) {
|
|
||||||
cmcf->variables_hash_bucket_size = 64;
|
|
||||||
}
|
|
||||||
|
|
||||||
cmcf->variables_hash_bucket_size =
|
cmcf->variables_hash_bucket_size =
|
||||||
ngx_align(cmcf->variables_hash_bucket_size, ngx_cacheline_size);
|
ngx_align(cmcf->variables_hash_bucket_size, ngx_cacheline_size);
|
||||||
|
Loading…
Reference in New Issue
Block a user