Mercurial > hg > nginx
comparison src/core/ngx_slab.h @ 5634:5024d29354f1
Core: slab log_nomem flag.
The flag allows to suppress "ngx_slab_alloc() failed: no memory" messages
from a slab allocator, e.g., if an LRU expiration is used by a consumer
and allocation failures aren't fatal.
The flag is now used in the SSL session cache code, and in the limit_req
module.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 31 Mar 2014 21:38:30 +0400 |
parents | d620f497c50f |
children | c46657e391a3 |
comparison
equal
deleted
inserted
replaced
5633:b74f1106f920 | 5634:5024d29354f1 |
---|---|
37 ngx_shmtx_t mutex; | 37 ngx_shmtx_t mutex; |
38 | 38 |
39 u_char *log_ctx; | 39 u_char *log_ctx; |
40 u_char zero; | 40 u_char zero; |
41 | 41 |
42 unsigned log_nomem:1; | |
43 | |
42 void *data; | 44 void *data; |
43 void *addr; | 45 void *addr; |
44 } ngx_slab_pool_t; | 46 } ngx_slab_pool_t; |
45 | 47 |
46 | 48 |