comparison src/core/ngx_hunk.c @ 154:eac26585476e

nginx-0.0.1-2003-10-22-11:05:29 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 22 Oct 2003 07:05:29 +0000
parents c71aeb75c071
children 46eb23d9471d
comparison
equal deleted inserted replaced
153:c71aeb75c071 154:eac26585476e
123 return NGX_OK; 123 return NGX_OK;
124 } 124 }
125 125
126 126
127 void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, 127 void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy,
128 ngx_chain_t **out) 128 ngx_chain_t **out, ngx_hunk_tag_t tag)
129 { 129 {
130 ngx_chain_t *te; 130 ngx_chain_t *te;
131 131
132 if (*busy == NULL) { 132 if (*busy == NULL) {
133 *busy = *out; 133 *busy = *out;
152 if ((*busy)->hunk->type & NGX_HUNK_ZEROCOPY_BUSY) { 152 if ((*busy)->hunk->type & NGX_HUNK_ZEROCOPY_BUSY) {
153 break; 153 break;
154 } 154 }
155 #endif 155 #endif
156 156
157 /* TODO: change to hunk->tag */ 157 if ((*busy)->hunk->tag != tag) {
158
159 if (!((*busy)->hunk->type & NGX_HUNK_TEMP)) {
160 *busy = (*busy)->next; 158 *busy = (*busy)->next;
161 continue; 159 continue;
162 } 160 }
163 161
164 (*busy)->hunk->pos = (*busy)->hunk->last = (*busy)->hunk->start; 162 (*busy)->hunk->pos = (*busy)->hunk->last = (*busy)->hunk->start;