httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_mem_cache.c
Date Mon, 06 May 2002 13:03:28 GMT
stoddard    02/05/06 06:03:28

  Modified:    modules/experimental mod_mem_cache.c
  Log:
  Fetch the filename to be cached from the file bucket rather than
  from the request_rec.
  
  Revision  Changes    Path
  1.55      +4 -4      httpd-2.0/modules/experimental/mod_mem_cache.c
  
  Index: mod_mem_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_mem_cache.c,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- mod_mem_cache.c	5 May 2002 22:28:03 -0000	1.54
  +++ mod_mem_cache.c	6 May 2002 13:03:28 -0000	1.55
  @@ -759,10 +759,10 @@
           }
           if (fd == 1 && !other && eos) {
               apr_file_t *tmpfile;
  -            /* Open a new XTHREAD handle to the file 
  -             * XXX: Need to fetch the filename from the file bucket...
  -             */
  -            rv = apr_file_open(&tmpfile, r->filename, 
  +            char *name;
  +            /* Open a new XTHREAD handle to the file */
  +            apr_file_name_get(&name, file);
  +            rv = apr_file_open(&tmpfile, name, 
                                  APR_READ | APR_BINARY | APR_XTHREAD | APR_FILE_NOCLEANUP,
                                  APR_OS_DEFAULT, r->pool);
               if (rv != APR_SUCCESS) {
  
  
  

Mime
View raw message