Mercurial > hg > nginx
changeset 750:e3df50b4a4fd
fix hash building on unknown 64-bit platform
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 06 Oct 2006 15:06:02 +0000 |
parents | bca3607c947b |
children | bae59a740c40 |
files | src/http/modules/ngx_http_fastcgi_module.c src/http/modules/ngx_http_proxy_module.c src/http/ngx_http.c src/http/ngx_http_upstream.c |
diffstat | 4 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_fastcgi_module.c Fri Oct 06 14:27:28 2006 +0000 +++ b/src/http/modules/ngx_http_fastcgi_module.c Fri Oct 06 15:06:02 2006 +0000 @@ -1826,7 +1826,7 @@ hash.hash = &conf->upstream.hide_headers_hash; hash.key = ngx_hash_key_lc; hash.max_size = 512; - hash.bucket_size = ngx_cacheline_size; + hash.bucket_size = 64; hash.name = "fastcgi_hide_headers_hash"; hash.pool = cf->pool; hash.temp_pool = NULL;
--- a/src/http/modules/ngx_http_proxy_module.c Fri Oct 06 14:27:28 2006 +0000 +++ b/src/http/modules/ngx_http_proxy_module.c Fri Oct 06 15:06:02 2006 +0000 @@ -1823,7 +1823,7 @@ hash.hash = &conf->upstream.hide_headers_hash; hash.key = ngx_hash_key_lc; hash.max_size = 512; - hash.bucket_size = ngx_cacheline_size; + hash.bucket_size = 64; hash.name = "proxy_hide_headers_hash"; hash.pool = cf->pool; hash.temp_pool = NULL;
--- a/src/http/ngx_http.c Fri Oct 06 14:27:28 2006 +0000 +++ b/src/http/ngx_http.c Fri Oct 06 15:06:02 2006 +0000 @@ -365,7 +365,7 @@ hash.hash = &cmcf->headers_in_hash; hash.key = ngx_hash_key_lc; hash.max_size = 512; - hash.bucket_size = ngx_cacheline_size; + hash.bucket_size = 64; hash.name = "headers_in_hash"; hash.pool = cf->pool; hash.temp_pool = NULL;
--- a/src/http/ngx_http_upstream.c Fri Oct 06 14:27:28 2006 +0000 +++ b/src/http/ngx_http_upstream.c Fri Oct 06 15:06:02 2006 +0000 @@ -2941,7 +2941,7 @@ hash.hash = &umcf->headers_in_hash; hash.key = ngx_hash_key_lc; hash.max_size = 512; - hash.bucket_size = ngx_cacheline_size; + hash.bucket_size = 64; hash.name = "upstream_headers_in_hash"; hash.pool = cf->pool; hash.temp_pool = NULL;