From 8280850d65b3a4d4c3bf952ed5336e113262f18f Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Fri, 31 Mar 2006 21:09:58 +0000 Subject: [PATCH] * As per discussion on the list: Return error code of apr_file_write_full 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cache/mod_disk_cache.c b/modules/cache/mod_disk_cache.c index b1b8f9801d..bf34279271 100644 --- a/modules/cache/mod_disk_cache.c +++ b/modules/cache/mod_disk_cache.c @@ -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) { -- 2.40.0