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).
Maxim Dounin
8 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
src/core/ngx_radix_tree.c
less
more
59
59
*/
60
60
61
61
if (preallocate == -1) {
62
switch (ngx_pagesize / sizeof(ngx_radix_tree_t)) {
62
switch (ngx_pagesize / sizeof(ngx_radix_node_t)) {
63
63
64
64
/* amd64 */
65
65
case 128: