]> git.kaiwu.me - nginx.git/commitdiff
nginx-0.1.0-2004-09-28-19:44:42 import
authorIgor Sysoev <igor@sysoev.ru>
Tue, 28 Sep 2004 15:44:42 +0000 (15:44 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Tue, 28 Sep 2004 15:44:42 +0000 (15:44 +0000)
src/event/ngx_event_pipe.c

index 8e2094bc6a43870c685b7be2c6396d27e655be25..6cdcf3df2069df3d9131f9758a906747c8c614fc 100644 (file)
@@ -658,30 +658,21 @@ ngx_inline static void ngx_event_pipe_remove_shadow_links(ngx_buf_t *buf)
 
     while (!b->last_shadow) {
         next = b->shadow;
-#if 0
-        b->type &= ~(NGX_HUNK_TEMP|NGX_HUNK_IN_MEMORY|NGX_HUNK_RECYCLED);
-#endif
+
         b->in_file = 0;
         b->temp_file = 0;
         b->flush = 0;
         b->zerocopy_busy = 0;
-        b->last_shadow = 0;
 
         b->shadow = NULL;
         b = next;
     }
 
-#if 0
-    b->type &= ~(NGX_HUNK_TEMP
-                 |NGX_HUNK_IN_MEMORY
-                 |NGX_HUNK_RECYCLED
-                 |NGX_HUNK_LAST_SHADOW);
-#endif
-
     b->in_file = 0;
     b->temp_file = 0;
     b->flush = 0;
     b->zerocopy_busy = 0;
+    b->last_shadow = 0;
 
     b->shadow = NULL;