]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* As per discussion on the list: Return error code of apr_file_write_full
authorRuediger Pluem <rpluem@apache.org>
Fri, 31 Mar 2006 21:09:58 +0000 (21:09 +0000)
committerRuediger Pluem <rpluem@apache.org>
Fri, 31 Mar 2006 21:09:58 +0000 (21:09 +0000)
  or apr_bucket_read instead of APR_EGENERAL if they fail.

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

modules/cache/mod_disk_cache.c

index b1b8f9801d8f8a2797878416dded412c3944622b..bf3427927169df013d33bfef959f485d7425dc41 100644 (file)
@@ -991,7 +991,7 @@ static apr_status_t store_body(cache_handle_t *h, request_rec *r,
                          h->cache_obj->key);
             /* Remove the intermediate cache file and return non-APR_SUCCESS */
             file_cache_errorcleanup(dobj, r);
-            return APR_EGENERAL;
+            return rv;
         }
         rv = apr_file_write_full(dobj->tfd, str, length, &written);
         if (rv != APR_SUCCESS) {
@@ -1000,7 +1000,7 @@ static apr_status_t store_body(cache_handle_t *h, request_rec *r,
                          h->cache_obj->key);
             /* Remove the intermediate cache file and return non-APR_SUCCESS */
             file_cache_errorcleanup(dobj, r);
-            return APR_EGENERAL;
+            return rv;
         }
         dobj->file_size += written;
         if (dobj->file_size > conf->maxfs) {