httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r885694 - /httpd/httpd/trunk/modules/cache/mod_disk_cache.c
Date Tue, 01 Dec 2009 08:59:42 GMT
Author: wrowe
Date: Tue Dec  1 08:59:41 2009
New Revision: 885694

URL: http://svn.apache.org/viewvc?rev=885694&view=rev
Log:
Revert nonsense I introduced in r885689; solve cl test correctly

Modified:
    httpd/httpd/trunk/modules/cache/mod_disk_cache.c

Modified: httpd/httpd/trunk/modules/cache/mod_disk_cache.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/mod_disk_cache.c?rev=885694&r1=885693&r2=885694&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/mod_disk_cache.c (original)
+++ httpd/httpd/trunk/modules/cache/mod_disk_cache.c Tue Dec  1 08:59:41 2009
@@ -1082,8 +1082,8 @@
             file_cache_errorcleanup(dobj, r);
             return APR_EGENERAL;
         }
-        if (cl_header > 0) {
-            apr_size_t cl = (apr_size_t) apr_atoi64(cl_header);
+        if (cl_header) {
+            apr_off_t cl = (apr_off_t) apr_atoi64(cl_header);
             if ((errno == 0) && (dobj->file_size != cl)) {
                 ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
                              "disk_cache: URL %s didn't receive complete response, not caching",



Mime
View raw message