]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
*) mod_cache_disk: Resolve errors while revalidating disk-cached files on
authorEric Covener <covener@apache.org>
Sun, 4 Nov 2012 03:22:33 +0000 (03:22 +0000)
committerEric Covener <covener@apache.org>
Sun, 4 Nov 2012 03:22:33 +0000 (03:22 +0000)
     Windows ("...rename tempfile to datafile failed..."). PR 38827
     [Eric Covener]

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

CHANGES
modules/cache/mod_cache_disk.c

diff --git a/CHANGES b/CHANGES
index 664e780629f3c1ad881ec4f22d0b7da1b1dc82b5..08dc1983099f4aa8821903486f787cb40589ad4a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
+  *) mod_cache_disk: Resolve errors while revalidating disk-cached files on 
+     Windows ("...rename tempfile to datafile failed..."). PR 38827
+     [Eric Covener]
 
   *) mod_proxy: Add ability to configure the sticky session separator.
      PR 53893. [<inu inusasha de>, Jim Jagielski]
index 55f628fa2cb13baa885d24cc503b891cf00e01ab..a024b7176fea676fc7d0d8f0bab96dba05915f65 100644 (file)
@@ -596,6 +596,11 @@ static int open_entity(cache_handle_t *h, request_rec *r, const char *key)
 
 static int remove_entity(cache_handle_t *h)
 {
+    disk_cache_object_t *dobj = (disk_cache_object_t *) h->cache_obj->vobj;
+    if (dobj->fd != NULL) {
+        apr_file_close(dobj->fd);
+    }
+
     /* Null out the cache object pointer so next time we start from scratch  */
     h->cache_obj = NULL;
     return OK;