Mercurial > hg > nginx
changeset 5636:54f847c88cf7
Core: fixed hash to actually try max_size.
Previously, maximum size of a hash table built was (max_size - 1).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 31 Mar 2014 21:40:35 +0400 |
parents | c348dea081fb |
children | 5a65b9d8bc2b |
files | src/core/ngx_hash.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/ngx_hash.c Mon Mar 31 21:40:31 2014 +0400 +++ b/src/core/ngx_hash.c Mon Mar 31 21:40:35 2014 +0400 @@ -282,7 +282,7 @@ start = hinit->max_size - 1000; } - for (size = start; size < hinit->max_size; size++) { + for (size = start; size <= hinit->max_size; size++) { ngx_memzero(test, size * sizeof(u_short));