]> git.kaiwu.me - nginx.git/commitdiff
fix hash building on unknown 64-bit platform
authorIgor Sysoev <igor@sysoev.ru>
Fri, 6 Oct 2006 15:06:02 +0000 (15:06 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 6 Oct 2006 15:06:02 +0000 (15:06 +0000)
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

index 98e098b49b9615becb790726f598702d749383ac..e4b7ba431b49cb08db0bff4dda19f52110257aee 100644 (file)
@@ -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;
index f4007be8e51b2cd486009acbf553c07b4978e5b1..0e6bb1d6f424611aa9f04f4ebbc9df8fb9e3136f 100644 (file)
@@ -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;
index 395282d85b9bd85e06d1279d59756a055b1d959b..1c930ed2e941ac76dd2c142037e17cc741fa76a2 100644 (file)
@@ -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;
index 2cdfdc8ba005226ce4d875eff83c112b3138a2ce..7d259d098f805d7bac928d2f6e7185e8f5aadccd 100644 (file)
@@ -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;