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 cache_pqueue.c
Date Mon, 17 Jun 2002 22:39:09 GMT
stoddard    2002/06/17 15:39:09

  Modified:    modules/experimental cache_pqueue.c
  Log:
  Eliminate segfault we were seeing in mod_mem_cache when collecting an expired
  entry from the cache. Ian?
  
  Revision  Changes    Path
  1.3       +3 -3      httpd-2.0/modules/experimental/cache_pqueue.c
  
  Index: cache_pqueue.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/cache_pqueue.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- cache_pqueue.c	13 Jun 2002 14:40:11 -0000	1.2
  +++ cache_pqueue.c	17 Jun 2002 22:39:09 -0000	1.3
  @@ -177,8 +177,8 @@
       long pri_popped;
       long pri_removed;
   
  -    posn  = q->get(d);
       popped = cache_pq_pop(q);
  +    posn  = q->get(d);
   
       if (!popped)
           return APR_EGENERAL;
  @@ -220,11 +220,11 @@
               break;
           }
           q->d[i] = q->d[j];
  -        q->set(d, i);
  +        q->set(q->d[i], i);
           i = j;
       }
       q->d[i] = tmp;
  -    q->set(d, i);
  +    q->set(q->d[i], i);
       return d;
   }
   
  
  
  

Mime
View raw message