comparison src/http/ngx_http_core_module.c @ 3388:d788521e4b0e

fix r3331: *) now pools are aligned to 16 bytes *) forbidden to set non-aligned pool sizes
author Igor Sysoev <igor@sysoev.ru>
date Thu, 17 Dec 2009 12:25:46 +0000
parents 49f977515733
children 8854f4eb2839
comparison
equal deleted inserted replaced
3387:a02b6d2e3bfd 3388:d788521e4b0e
4316 { 4316 {
4317 size_t *sp = data; 4317 size_t *sp = data;
4318 4318
4319 if (*sp < NGX_MIN_POOL_SIZE) { 4319 if (*sp < NGX_MIN_POOL_SIZE) {
4320 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, 4320 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
4321 "pool must be no less than %uz", NGX_MIN_POOL_SIZE); 4321 "the pool size must be no less than %uz",
4322 4322 NGX_MIN_POOL_SIZE);
4323 return NGX_CONF_ERROR; 4323 return NGX_CONF_ERROR;
4324 } 4324 }
4325 4325
4326 if (*sp % NGX_POOL_ALIGNMENT) {
4327 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
4328 "the pool size must be a multiple of %uz",
4329 NGX_POOL_ALIGNMENT);
4330 return NGX_CONF_ERROR;
4331 }
4332
4326 return NGX_CONF_OK; 4333 return NGX_CONF_OK;
4327 } 4334 }