Changeset 616

Show
Ignore:
Timestamp:
10/03/07 20:03:55 (1 year ago)
Author:
plindner
Message:

Fix for stats.evictions not incrementing when exptime == 0 items
are kicked off the cache from Jean-Francois BUSTARRET
<jfbustarret@wat.tv>.

Files:

Legend:

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

    r615 r616  
    66          existing key. 
    77 
     8        * Fix for stats.evictions not incrementing 
     9          when exptime == 0 items are kicked off the cache.  
     10          from Jean-Francois BUSTARRET <jfbustarret@wat.tv>. 
     11         
    8122007-08-21 Paul Lindner <lindner@inuus.com> 
    913        * Incorporate incrememnt patch from Evan Miller  
  • trunk/server/items.c

    r594 r616  
    105105        for (search = tails[id]; tries > 0 && search != NULL; tries--, search=search->prev) { 
    106106            if (search->refcount == 0) { 
    107                if (search->exptime > current_time) { 
     107               if (search->exptime == 0 || search->exptime > current_time) { 
    108108                       STATS_LOCK(); 
    109109                       stats.evictions++;