nginx-0.0.4-2004-06-10-22:36:57 import
diff --git a/src/core/ngx_radix_tree.c b/src/core/ngx_radix_tree.c
index b63be1f..5c7a801 100644
--- a/src/core/ngx_radix_tree.c
+++ b/src/core/ngx_radix_tree.c
@@ -3,10 +3,6 @@
#include <ngx_core.h>
-/* STUB: page size */
-#define NGX_RADIX_TREE_POOL_SIZE 4096
-
-
static void *ngx_radix_alloc(ngx_radix_tree_t *tree, size_t size);
@@ -187,11 +183,11 @@
}
if (tree->size < size) {
- if (!(tree->start = ngx_palloc(tree->pool, NGX_RADIX_TREE_POOL_SIZE))) {
+ if (!(tree->start = ngx_palloc(tree->pool, ngx_pagesize))) {
return NULL;
}
- tree->size = NGX_RADIX_TREE_POOL_SIZE;
+ tree->size = ngx_pagesize;
}
p = tree->start;