mirror of
https://github.com/nginx/nginx.git
synced 2024-11-26 02:40:46 -06:00
delete duplicate error logging
This commit is contained in:
parent
a2c8d9a0a8
commit
2766157b02
@ -224,11 +224,6 @@ ngx_http_limit_req_handler(ngx_http_request_t *r)
|
|||||||
node = ngx_slab_alloc_locked(ctx->shpool, n);
|
node = ngx_slab_alloc_locked(ctx->shpool, n);
|
||||||
if (node == NULL) {
|
if (node == NULL) {
|
||||||
ngx_shmtx_unlock(&ctx->shpool->mutex);
|
ngx_shmtx_unlock(&ctx->shpool->mutex);
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
|
|
||||||
"could not allocate memory in zone \"%V\"",
|
|
||||||
&lrcf->shm_zone->name);
|
|
||||||
|
|
||||||
return NGX_HTTP_SERVICE_UNAVAILABLE;
|
return NGX_HTTP_SERVICE_UNAVAILABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -210,11 +210,6 @@ ngx_http_limit_zone_handler(ngx_http_request_t *r)
|
|||||||
node = ngx_slab_alloc_locked(shpool, n);
|
node = ngx_slab_alloc_locked(shpool, n);
|
||||||
if (node == NULL) {
|
if (node == NULL) {
|
||||||
ngx_shmtx_unlock(&shpool->mutex);
|
ngx_shmtx_unlock(&shpool->mutex);
|
||||||
|
|
||||||
ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
|
|
||||||
"could not allocate memory in zone \"%V\"",
|
|
||||||
&lzcf->shm_zone->name);
|
|
||||||
|
|
||||||
return NGX_HTTP_SERVICE_UNAVAILABLE;
|
return NGX_HTTP_SERVICE_UNAVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user