Mercurial > hg > nginx
comparison src/http/modules/ngx_http_limit_req_module.c @ 2612:038dc63b657a
delete duplicate error logging
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 27 Mar 2009 19:32:55 +0000 |
parents | 2bce3f6416c6 |
children | d5896f6608e8 |
comparison
equal
deleted
inserted
replaced
2611:2bce3f6416c6 | 2612:038dc63b657a |
---|---|
222 ngx_http_limit_req_expire(ctx, 0); | 222 ngx_http_limit_req_expire(ctx, 0); |
223 | 223 |
224 node = ngx_slab_alloc_locked(ctx->shpool, n); | 224 node = ngx_slab_alloc_locked(ctx->shpool, n); |
225 if (node == NULL) { | 225 if (node == NULL) { |
226 ngx_shmtx_unlock(&ctx->shpool->mutex); | 226 ngx_shmtx_unlock(&ctx->shpool->mutex); |
227 | |
228 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0, | |
229 "could not allocate memory in zone \"%V\"", | |
230 &lrcf->shm_zone->name); | |
231 | |
232 return NGX_HTTP_SERVICE_UNAVAILABLE; | 227 return NGX_HTTP_SERVICE_UNAVAILABLE; |
233 } | 228 } |
234 } | 229 } |
235 | 230 |
236 lr = (ngx_http_limit_req_node_t *) &node->color; | 231 lr = (ngx_http_limit_req_node_t *) &node->color; |