comparison src/http/modules/ngx_http_limit_zone_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
208 + len; 208 + len;
209 209
210 node = ngx_slab_alloc_locked(shpool, n); 210 node = ngx_slab_alloc_locked(shpool, n);
211 if (node == NULL) { 211 if (node == NULL) {
212 ngx_shmtx_unlock(&shpool->mutex); 212 ngx_shmtx_unlock(&shpool->mutex);
213
214 ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
215 "could not allocate memory in zone \"%V\"",
216 &lzcf->shm_zone->name);
217
218 return NGX_HTTP_SERVICE_UNAVAILABLE; 213 return NGX_HTTP_SERVICE_UNAVAILABLE;
219 } 214 }
220 215
221 lz = (ngx_http_limit_zone_node_t *) &node->color; 216 lz = (ngx_http_limit_zone_node_t *) &node->color;
222 217