Skip to content

Commit 041ee28

Browse files
committed
Adjust hash bucket size of small_light_pattern_define.
As ngx_cacheline_size is environment-dependent and sometimes small, hash bucket size may not be enough depending on the environment.
1 parent 7b4eb5b commit 041ee28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_http_small_light_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ static char *ngx_http_small_light_pattern_define(ngx_conf_t *cf, ngx_command_t *
541541
hash.hash = &srv_conf->hash;
542542
hash.key = ngx_hash_key_lc;
543543
hash.max_size = 128;
544-
hash.bucket_size = ngx_cacheline_size;
544+
hash.bucket_size = 128;
545545
hash.name = "small_light_pattern_define";
546546
hash.pool = srv_conf->patterns.keys.pool;
547547
hash.temp_pool = NULL;

0 commit comments

Comments
 (0)