diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2012-08-19 03:17:58 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2012-08-19 03:17:58 +0400 |
commit | c22b87b2e44c061b46faa7f14d1d8ceed4b82204 (patch) | |
tree | 51204c5c9a1d8d37b1b34ef88c9a37e1f2c0a461 /src/core/ngx_radix_tree.c | |
parent | 83e35f6f22e06a32d283b28c66800cd8229cefc7 (diff) |
Radix tree preallocation fix.
The preallocation size was calculated incorrectly and was always 8 due to
sizeof(ngx_radix_tree_t) accidentally used instead of sizeof(ngx_radix_node_t).
Diffstat (limited to 'src/core/ngx_radix_tree.c')
-rw-r--r-- | src/core/ngx_radix_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_radix_tree.c b/src/core/ngx_radix_tree.c index b95cbc013..5b35d1e49 100644 --- a/src/core/ngx_radix_tree.c +++ b/src/core/ngx_radix_tree.c @@ -60,7 +60,7 @@ ngx_radix_tree_create(ngx_pool_t *pool, ngx_int_t preallocate) */ if (preallocate == -1) { - switch (ngx_pagesize / sizeof(ngx_radix_tree_t)) { + switch (ngx_pagesize / sizeof(ngx_radix_node_t)) { /* amd64 */ case 128: |