mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 11:38:36 +08:00
fix max size allocated from pool
This commit is contained in:
parent
11864a706a
commit
3cc03616e9
@ -26,8 +26,9 @@ ngx_create_pool(size_t size, ngx_log_t *log)
|
|||||||
p->d.end = (u_char *) p + size;
|
p->d.end = (u_char *) p + size;
|
||||||
p->d.next = NULL;
|
p->d.next = NULL;
|
||||||
|
|
||||||
p->max = (size < NGX_MAX_ALLOC_FROM_POOL) ? size - sizeof(ngx_pool_t):
|
size = size - sizeof(ngx_pool_t);
|
||||||
NGX_MAX_ALLOC_FROM_POOL;
|
p->max = (size < NGX_MAX_ALLOC_FROM_POOL) ? size : NGX_MAX_ALLOC_FROM_POOL;
|
||||||
|
|
||||||
p->current = p;
|
p->current = p;
|
||||||
p->chain = NULL;
|
p->chain = NULL;
|
||||||
p->large = NULL;
|
p->large = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user