# HG changeset patch # User Maxim Dounin # Date 1396291662 -14400 # Node ID 5a65b9d8bc2bc6d104a17ba0460c2855398ab9c2 # Parent 54f847c88cf71f53cb9429211ec23cc5414fb2c3 Adjusted default value of types_hash_bucket_size (ticket #352). The ngx_cacheline_size may be too low on some platforms, resulting in unexpected hash build problems (as no collisions are tolerated due to low bucket_size, and max_size isn't big enough to build a hash without collisions). These problems aren't fatal anymore but nevertheless need to be addressed. diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3710,8 +3710,7 @@ ngx_http_core_merge_loc_conf(ngx_conf_t prev->types_hash_max_size, 1024); ngx_conf_merge_uint_value(conf->types_hash_bucket_size, - prev->types_hash_bucket_size, - ngx_cacheline_size); + prev->types_hash_bucket_size, 64); conf->types_hash_bucket_size = ngx_align(conf->types_hash_bucket_size, ngx_cacheline_size);