]> git.kaiwu.me - nginx.git/commitdiff
Merge of r4613: removed surplus condition.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 4 Jun 2012 10:33:38 +0000 (10:33 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 4 Jun 2012 10:33:38 +0000 (10:33 +0000)
src/http/ngx_http_request.c

index 052f379ac3db55ceecd946945f6859919cb0e11b..59d4d4ae610a28d317d2d7d935c2db5879f8bd3b 100644 (file)
@@ -2001,14 +2001,6 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
             return;
         }
 
-#if (NGX_DEBUG)
-        if (r != c->data) {
-            ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
-                           "http finalize non-active request: \"%V?%V\"",
-                           &r->uri, &r->args);
-        }
-#endif
-
         pr = r->parent;
 
         if (r == c->data) {
@@ -2042,6 +2034,10 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
 
         } else {
 
+            ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
+                           "http finalize non-active request: \"%V?%V\"",
+                           &r->uri, &r->args);
+
             r->write_event_handler = ngx_http_request_finalizer;
 
             if (r->waited) {