]> granicus.if.org Git - apache/commitdiff
Optimise the alternate case. Fail fast and stop splitting buckets if
authorGraham Leggett <minfrin@apache.org>
Wed, 25 Oct 2006 15:45:22 +0000 (15:45 +0000)
committerGraham Leggett <minfrin@apache.org>
Wed, 25 Oct 2006 15:45:22 +0000 (15:45 +0000)
store_body is no longer being called.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@467684 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/mod_cache.c

index 483b2bb5623fcc27d578fc24617d4d1977989a29..b4022f32c8e2b8b863d8ecafb64f0d94311dcc5c 100644 (file)
@@ -338,7 +338,7 @@ static int do_store_body(cache_request_rec *cache,
     rv2 = APR_SUCCESS;
     if (conf->maxbucketsize > 0) {
         e = APR_BRIGADE_FIRST(in);
-        while (e != APR_BRIGADE_SENTINEL(in)) {   
+        while (APR_SUCCESS == rv && e != APR_BRIGADE_SENTINEL(in)) {
     
             /* if necessary, split the brigade and send what we have so far */
             if (APR_SUCCESS == apr_bucket_split(e, conf->maxbucketsize)) {