From: Graham Leggett Date: Wed, 27 Sep 2006 14:21:26 +0000 (+0000) Subject: mod_cache: Eliminate a bogus error in the log when a filter returns X-Git-Tag: 2.3.0~2115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc84099c0a75e17148f00a45166c4f706f0cb06c;p=apache mod_cache: Eliminate a bogus error in the log when a filter returns AP_FILTER_ERROR. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@450453 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 9ba2bd2a22..51848538b2 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.3.0 [Remove entries to the current 2.0 and 2.2 section below, when backported] + *) mod_cache: Eliminate a bogus error in the log when a filter returns + AP_FILTER_ERROR. [Niklas Edmundsson ] + *) mod_disk_cache: Make caching of large files possible on 32bit machines by determining whether the cached file should be copied on disk rather than loaded into RAM. PR39380 [Niklas Edmundsson ] diff --git a/modules/cache/mod_cache.c b/modules/cache/mod_cache.c index 3b34ee338a..0d0ba0f6fe 100644 --- a/modules/cache/mod_cache.c +++ b/modules/cache/mod_cache.c @@ -244,10 +244,12 @@ static int cache_url_handler(request_rec *r, int lookup) out = apr_brigade_create(r->pool, r->connection->bucket_alloc); rv = ap_pass_brigade(r->output_filters, out); if (rv != APR_SUCCESS) { - ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server, - "cache: error returned while trying to return %s " - "cached data", - cache->provider_name); + if(rv != AP_FILTER_ERROR) { + ap_log_error(APLOG_MARK, APLOG_ERR, rv, r->server, + "cache: error returned while trying to return %s " + "cached data", + cache->provider_name); + } return rv; }