Changeset 296

Show
Ignore:
Timestamp:
02/13/07 22:23:53 (1 year ago)
Author:
bart
Message:

Fix loading of cached scripts and data on disk

Files:

Legend:

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

    r295 r296  
    1010        * Revert some changes form changeset @256 to fix bug #199 
    1111        * Some more year updates 
     12        * Fix loading of cached scripts and data on disk 
    1213 
    13142007-01-29  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
  • eaccelerator/trunk/cache.c

    r286 r296  
    385385 
    386386            EACCELERATOR_FLOCK(f, LOCK_SH); 
    387             if (read(f, &hdr, sizeof(hdr)) != sizeof(hdr) || check_header(&hdr)) { 
     387            if (read(f, &hdr, sizeof(hdr)) != sizeof(hdr) || !check_header(&hdr)) { 
    388388                EACCELERATOR_FLOCK(f, LOCK_UN); 
    389389                close(f); 
  • eaccelerator/trunk/eaccelerator.c

    r295 r296  
    677677      return NULL; 
    678678    } 
    679     if (check_header(&hdr)) { 
     679    if (!check_header(&hdr)) { 
    680680      EACCELERATOR_FLOCK(f, LOCK_UN); 
    681681      close(f);