diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-10-06 15:06:02 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-06 15:06:02 +0000 |
commit | 627b8aa3bd8ec4ebff1d08ade3a6d17de8fa7bf1 (patch) | |
tree | 3c509b0d94ffd4004e569466ee019d9e4c786e8e /src | |
parent | c537f0cbe77a45183680d9735ae5532a02c9d2ab (diff) | |
download | nginx-627b8aa3bd8ec4ebff1d08ade3a6d17de8fa7bf1.tar.gz nginx-627b8aa3bd8ec4ebff1d08ade3a6d17de8fa7bf1.zip |
fix hash building on unknown 64-bit platform
Diffstat (limited to 'src')
-rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 2 | ||||
-rw-r--r-- | src/http/modules/ngx_http_proxy_module.c | 2 | ||||
-rw-r--r-- | src/http/ngx_http.c | 2 | ||||
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index 98e098b49..e4b7ba431 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -1826,7 +1826,7 @@ ngx_http_fastcgi_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) 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; diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index f4007be8e..0e6bb1d6f 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -1823,7 +1823,7 @@ ngx_http_proxy_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child) 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; diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 395282d85..1c930ed2e 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -365,7 +365,7 @@ ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) 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; diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 2cdfdc8ba..7d259d098 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2941,7 +2941,7 @@ ngx_http_upstream_init_main_conf(ngx_conf_t *cf, void *conf) 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; |