]> git.kaiwu.me - nginx.git/commitdiff
Use NGX_DEFAULT_POOL_SIZE macro where appropriate.
authorRuslan Ermilov <ru@nginx.com>
Thu, 21 Mar 2013 16:03:24 +0000 (16:03 +0000)
committerRuslan Ermilov <ru@nginx.com>
Thu, 21 Mar 2013 16:03:24 +0000 (16:03 +0000)
src/core/ngx_cycle.h
src/http/modules/ngx_http_geo_module.c
src/http/modules/ngx_http_map_module.c
src/http/ngx_http.c

index b55fee0f192d9b78b29ff0736429f67e75e8af76..2e4bc4ba2785762c84346f4ea09e45eb3de3eaf8 100644 (file)
@@ -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
 
 
index 725baa211d7f9bc6892b688f01394ff513f3eae5..34c3b190d188826b56ae424ec07150f585ac0833 100644 (file)
@@ -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;
     }
index f5ee7673f16263bd1ff18f8beeb23b0ffcdde250..13c8b97ff66113177782e4e185bba1cfb51dcf2d 100644 (file)
@@ -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;
     }
index 8704c404c8b175f022c74e72216e8e34ee3dbecc..987ae54df664f27fbe83583fc5864dbe7cca950f 100644 (file)
@@ -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;
     }