]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
backport some consistency with trunks mod_cache:
authorEric Covener <covener@apache.org>
Tue, 8 Jul 2014 16:14:05 +0000 (16:14 +0000)
committerEric Covener <covener@apache.org>
Tue, 8 Jul 2014 16:14:05 +0000 (16:14 +0000)
commit213b94349fdd0640deec03f3e6c02efa7e527b6d
tree49b2a921b793eac34451499cac33ecc5a256865f
parente2b7c4079b206d7e52e58e1be069616d52d7a5e1
backport some consistency with trunks mod_cache:

   * mod_cache, mod_disk_cache: Try to use the key of a possible open but
     stale cache entry if there is one. This fixes problem when two different
     cache locks have been created for single stale cache entry leading to two
     requests sent to backend.
     PR 50317

   * Remove useless apr_file_remove() before renaming the cache entry in
     mod_disk_cache. This fixes small time-frame during which stale cache
     entry can be seen as not-cached.
     PR 50317

Subitted By: rpluem, jkaluza, ylavic
Reviewed By: ylavic, rpluem, jkaluza

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1608838 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
STATUS
modules/cache/mod_cache.c
modules/cache/mod_disk_cache.c