aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2013-03-21 16:03:24 +0000
committerRuslan Ermilov <ru@nginx.com>2013-03-21 16:03:24 +0000
commit56fce56f4f06a4c1a57a51c1bb1513397b053b1e (patch)
treee4e67d960a0989ba41eaaf737947c648f16aed44
parent7b80e43389c313b15574df255dbf5336d6b1dc20 (diff)
downloadnginx-56fce56f4f06a4c1a57a51c1bb1513397b053b1e.tar.gz
nginx-56fce56f4f06a4c1a57a51c1bb1513397b053b1e.zip
Use NGX_DEFAULT_POOL_SIZE macro where appropriate.
-rw-r--r--src/core/ngx_cycle.h2
-rw-r--r--src/http/modules/ngx_http_geo_module.c4
-rw-r--r--src/http/modules/ngx_http_map_module.c2
-rw-r--r--src/http/ngx_http.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/core/ngx_cycle.h b/src/core/ngx_cycle.h
index b55fee0f1..2e4bc4ba2 100644
--- a/src/core/ngx_cycle.h
+++ b/src/core/ngx_cycle.h
@@ -14,7 +14,7 @@
#ifndef NGX_CYCLE_POOL_SIZE
-#define NGX_CYCLE_POOL_SIZE 16384
+#define NGX_CYCLE_POOL_SIZE NGX_DEFAULT_POOL_SIZE
#endif
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c
index 725baa211..34c3b190d 100644
--- a/src/http/modules/ngx_http_geo_module.c
+++ b/src/http/modules/ngx_http_geo_module.c
@@ -430,14 +430,14 @@ ngx_http_geo_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_ERROR;
}
- pool = ngx_create_pool(16384, cf->log);
+ pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
if (pool == NULL) {
return NGX_CONF_ERROR;
}
ngx_memzero(&ctx, sizeof(ngx_http_geo_conf_ctx_t));
- ctx.temp_pool = ngx_create_pool(16384, cf->log);
+ ctx.temp_pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
if (ctx.temp_pool == NULL) {
return NGX_CONF_ERROR;
}
diff --git a/src/http/modules/ngx_http_map_module.c b/src/http/modules/ngx_http_map_module.c
index f5ee7673f..13c8b97ff 100644
--- a/src/http/modules/ngx_http_map_module.c
+++ b/src/http/modules/ngx_http_map_module.c
@@ -227,7 +227,7 @@ ngx_http_map_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
var->get_handler = ngx_http_map_variable;
var->data = (uintptr_t) map;
- pool = ngx_create_pool(16384, cf->log);
+ pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
if (pool == NULL) {
return NGX_CONF_ERROR;
}
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c
index 8704c404c..987ae54df 100644
--- a/src/http/ngx_http.c
+++ b/src/http/ngx_http.c
@@ -1479,7 +1479,7 @@ ngx_http_server_names(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf,
ngx_memzero(&ha, sizeof(ngx_hash_keys_arrays_t));
- ha.temp_pool = ngx_create_pool(16384, cf->log);
+ ha.temp_pool = ngx_create_pool(NGX_DEFAULT_POOL_SIZE, cf->log);
if (ha.temp_pool == NULL) {
return NGX_ERROR;
}