From 5bf3d25d69ecdbccaa98beeb089a7a6850529b89 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 22 Oct 2003 07:05:29 +0000 Subject: nginx-0.0.1-2003-10-22-11:05:29 import --- src/core/ngx_hunk.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/core/ngx_hunk.c') diff --git a/src/core/ngx_hunk.c b/src/core/ngx_hunk.c index 6bed8c566..cd218307d 100644 --- a/src/core/ngx_hunk.c +++ b/src/core/ngx_hunk.c @@ -125,7 +125,7 @@ int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **ch, ngx_chain_t *in) void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, - ngx_chain_t **out) + ngx_chain_t **out, ngx_hunk_tag_t tag) { ngx_chain_t *te; @@ -154,9 +154,7 @@ void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, } #endif - /* TODO: change to hunk->tag */ - - if (!((*busy)->hunk->type & NGX_HUNK_TEMP)) { + if ((*busy)->hunk->tag != tag) { *busy = (*busy)->next; continue; } -- cgit v1.2.3