From: Stefan Fritsch Date: Sun, 22 Jan 2012 18:52:37 +0000 (+0000) Subject: Merge r1234574: X-Git-Tag: 2.4.1~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca96d641afd501df27f467ad6eeecaeb0f66202b;p=apache Merge r1234574: ctx->bytes_in is never used. Remove a useless iteration through the brigade git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1234576 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core_filters.c b/server/core_filters.c index a5f190963e..2c24b13a18 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -396,14 +396,8 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb) ctx->buffered_bb = apr_brigade_create(c->pool, c->bucket_alloc); } - if (new_bb != NULL) { - for (bucket = APR_BRIGADE_FIRST(new_bb); bucket != APR_BRIGADE_SENTINEL(new_bb); bucket = APR_BUCKET_NEXT(bucket)) { - if (bucket->length > 0) { - ctx->bytes_in += bucket->length; - } - } + if (new_bb != NULL) bb = new_bb; - } if ((ctx->buffered_bb != NULL) && !APR_BRIGADE_EMPTY(ctx->buffered_bb)) {