diff src/http/modules/ngx_http_fastcgi_module.c @ 751:bae59a740c40

align hash bucket size to cache line
author Igor Sysoev <igor@sysoev.ru>
date Mon, 09 Oct 2006 14:03:16 +0000
parents e3df50b4a4fd
children 4ab852b691f5
line wrap: on
line diff
--- 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
     hash.hash = &conf->upstream.hide_headers_hash;
     hash.key = ngx_hash_key_lc;
     hash.max_size = 512;
-    hash.bucket_size = 64;
+    hash.bucket_size = ngx_align(64, ngx_cacheline_size);
     hash.name = "fastcgi_hide_headers_hash";
     hash.pool = cf->pool;
     hash.temp_pool = NULL;