]> git.kaiwu.me - nginx.git/commitdiff
delete duplicate error logging
authorIgor Sysoev <igor@sysoev.ru>
Fri, 27 Mar 2009 19:32:55 +0000 (19:32 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 27 Mar 2009 19:32:55 +0000 (19:32 +0000)
src/http/modules/ngx_http_limit_req_module.c
src/http/modules/ngx_http_limit_zone_module.c

index 36787b090c8a74e197e7e1dbecb2ecc24c02b653..b3934076e5d8ad0f108e1d34f22ed11806ed6c8b 100644 (file)
@@ -224,11 +224,6 @@ ngx_http_limit_req_handler(ngx_http_request_t *r)
         node = ngx_slab_alloc_locked(ctx->shpool, n);
         if (node == NULL) {
             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;
         }
     }
index 1519e7f324eaa832df6293d988327c74a9e5643b..384155c858df4d6d95494590268c4b721ee32ab1 100644 (file)
@@ -210,11 +210,6 @@ ngx_http_limit_zone_handler(ngx_http_request_t *r)
     node = ngx_slab_alloc_locked(shpool, n);
     if (node == NULL) {
         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;
     }