[nginx] svn commit: r5125 - in trunk/src: core http http/modules

ru at nginx.com ru at nginx.com
Thu Mar 21 16:03:24 UTC 2013


Author: ru
Date: 2013-03-21 16:03:24 +0000 (Thu, 21 Mar 2013)
New Revision: 5125
URL: http://trac.nginx.org/nginx/changeset/5125/nginx

Log:
Use NGX_DEFAULT_POOL_SIZE macro where appropriate.


Modified:
   trunk/src/core/ngx_cycle.h
   trunk/src/http/modules/ngx_http_geo_module.c
   trunk/src/http/modules/ngx_http_map_module.c
   trunk/src/http/ngx_http.c

Modified: trunk/src/core/ngx_cycle.h
===================================================================
--- trunk/src/core/ngx_cycle.h	2013-03-21 15:52:52 UTC (rev 5124)
+++ trunk/src/core/ngx_cycle.h	2013-03-21 16:03:24 UTC (rev 5125)
@@ -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
 
 

Modified: trunk/src/http/modules/ngx_http_geo_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_geo_module.c	2013-03-21 15:52:52 UTC (rev 5124)
+++ trunk/src/http/modules/ngx_http_geo_module.c	2013-03-21 16:03:24 UTC (rev 5125)
@@ -430,14 +430,14 @@
         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;
     }

Modified: trunk/src/http/modules/ngx_http_map_module.c
===================================================================
--- trunk/src/http/modules/ngx_http_map_module.c	2013-03-21 15:52:52 UTC (rev 5124)
+++ trunk/src/http/modules/ngx_http_map_module.c	2013-03-21 16:03:24 UTC (rev 5125)
@@ -227,7 +227,7 @@
     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;
     }

Modified: trunk/src/http/ngx_http.c
===================================================================
--- trunk/src/http/ngx_http.c	2013-03-21 15:52:52 UTC (rev 5124)
+++ trunk/src/http/ngx_http.c	2013-03-21 16:03:24 UTC (rev 5125)
@@ -1479,7 +1479,7 @@
 
     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;
     }



More information about the nginx-devel mailing list