Changeset 169

Show
Ignore:
Timestamp:
02/20/06 23:36:45 (3 years ago)
Author:
zoeloelip
Message:

Included patch #1435196 to fix the problem of duplicate keys that don't get removed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r168 r169  
    33        * Fixed bypassing open_basedir restriction when the file was already  
    44          cached. This fixes bug #1427719 
     5        * Included patch #1435196 to fix the problem of duplicate keys that  
     6          don't get removed. 
    57 
    682006-02-20  Hans Rakers <hans at parse dot nl> 
  • eaccelerator/trunk/cache.c

    r123 r169  
    210210{ 
    211211        mm_user_cache_entry *p, *q; 
    212         unsigned int slot
     212        unsigned int slot, hv
    213213        long size; 
    214214        int use_shm = 1; 
     
    306306                         */ 
    307307                        slot = q->hv & MM_USER_HASH_MAX; 
     308            hv = q->hv; 
    308309                        EACCELERATOR_LOCK_RW (); 
    309310                        eaccelerator_mm_instance->user_hash_cnt++; 
     
    312313                        p = q->next; 
    313314                        while (p != NULL) { 
    314                                 if ((p->hv == q->hv) && (strcmp (p->key, xkey) == 0)) { 
     315                                if ((p->hv == hv) && (strcmp (p->key, xkey) == 0)) { 
    315316                                        eaccelerator_mm_instance->user_hash_cnt--; 
    316317                                        q->next = p->next;