apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From do...@apache.org
Subject cvs commit: apr-util/buckets apr_buckets_file.c
Date Wed, 28 Nov 2001 00:38:01 GMT
dougm       01/11/27 16:38:01

  Modified:    buckets  apr_buckets_file.c
  Log:
  change file_make_mmap() to use APR_MMAP_CANDIDATE macro
  
  Revision  Changes    Path
  1.61      +1 -2      apr-util/buckets/apr_buckets_file.c
  
  Index: apr_buckets_file.c
  ===================================================================
  RCS file: /home/cvs/apr-util/buckets/apr_buckets_file.c,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- apr_buckets_file.c	2001/11/28 00:30:04	1.60
  +++ apr_buckets_file.c	2001/11/28 00:38:00	1.61
  @@ -84,8 +84,7 @@
       apr_bucket_file *a = e->data;
       apr_mmap_t *mm;
   
  -    if ((filelength >= APR_MMAP_THRESHOLD) &&
  -        (filelength < APR_MMAP_LIMIT) &&
  +    if (APR_MMAP_CANDIDATE(filelength) &&
           (apr_mmap_create(&mm, a->fd, fileoffset, filelength,
                            APR_MMAP_READ, p) == APR_SUCCESS))
       {
  
  
  

Mime
View raw message