Re: A bug? Puzzled at the actions after cache hit. :-(

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Sat, 11 May 2002 14:42:20 +0200

The only case where the swap file size will change in between where
Squid wrote the file out and it is being read back again is when the
cache is being corrupted.

Nothing but Squid is supposed to ever touch the cache files. These
are internal to Squid.

Regards
Henrik

On Saturday 11 May 2002 13:37, maer727@sohu.com wrote:
> Hi, pals!
>
> I think when cache hit, the function storeSwapMetaUnpack() will
> finally be called to change meta data to TVL list. I take a look
> at the function, storeClientReadHeader will finally be called.
> In this function, there is a statement like this,
>
> mem->object_sz = e->swap_file_sz - swap_hdr_sz;
>
> I think there may be a bug. Since the swap_file_sz of StoreEntry
> will possibly be changed since last time. IMHO, I think squid will
> not refresh the file size of the swap file since last time. I think
> we should force squid to re-read the file size of the swap file.
> Am I correct? ( Maybe some other process has modified the file and
> changed the size of the file. )
>
> Best regards,
> George Ma
Received on Sat May 11 2002 - 06:54:27 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:25 MST