ASF Bugzilla – Attachment 18155 Details for
Bug 39380
mod_disk_cache eats memory, has no LFS support, etc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mod_cache: Provide r->filename so %f in LogFormat works
httpd-2.2.1-cache-filename.patch (text/plain), 1.16 KB, created by
Niklas Edmundsson
on 2006-04-22 09:52:18 UTC
(
hide
)
Description:
mod_cache: Provide r->filename so %f in LogFormat works
Filename:
MIME Type:
Creator:
Niklas Edmundsson
Created:
2006-04-22 09:52:18 UTC
Size:
1.16 KB
patch
obsolete
>diff -ru ../dist/modules/cache/mod_cache.c ./modules/cache/mod_cache.c >--- ../dist/modules/cache/mod_cache.c 2005-11-10 16:20:05.000000000 +0100 >+++ ./modules/cache/mod_cache.c 2006-04-21 15:54:05.000000000 +0200 >@@ -245,6 +245,7 @@ > { > request_rec *r = f->r; > cache_request_rec *cache; >+ char *path; > > cache = (cache_request_rec *) ap_get_module_config(r->request_config, > &cache_module); >@@ -266,6 +267,18 @@ > * restore the status into it's handle. */ > r->status = cache->handle->cache_obj->info.status; > >+ if(!r->filename) { >+ /* Restore filename, used by %f in LogFormat config */ >+ /* FIXME: This should really be saved with the headers when >+ caching, now we just bodge together something that might be right */ >+ path = r->uri; >+ while (*path == '/') { >+ ++path; >+ } >+ apr_filepath_merge(&r->filename, ap_document_root(r), path, >+ APR_FILEPATH_TRUENAME | APR_FILEPATH_SECUREROOT, r->pool); >+ } >+ > /* recall_headers() was called in cache_select() */ > cache->provider->recall_body(cache->handle, r->pool, bb); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39380
:
18152
|
18154
|
18155
|
18157
|
18158
|
18159
|
18860
|
18861
|
18916
|
18968
|
18969
|
18979
|
18980
|
19418
|
20558
|
21016
|
21519
|
21715
|
22127