Welcome! Log In Create A New Profile

Advanced

[nginx] Core: fixed hash to actually try max_size.

Maxim Dounin
April 01, 2014 09:52AM
details: http://hg.nginx.org/nginx/rev/54f847c88cf7
branches:
changeset: 5636:54f847c88cf7
user: Maxim Dounin <mdounin@mdounin.ru>
date: Mon Mar 31 21:40:35 2014 +0400
description:
Core: fixed hash to actually try max_size.

Previously, maximum size of a hash table built was (max_size - 1).

diffstat:

src/core/ngx_hash.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/core/ngx_hash.c b/src/core/ngx_hash.c
--- a/src/core/ngx_hash.c
+++ b/src/core/ngx_hash.c
@@ -282,7 +282,7 @@ ngx_hash_init(ngx_hash_init_t *hinit, ng
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));


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Core: fixed hash to actually try max_size.

Maxim Dounin 482 April 01, 2014 09:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 231
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready