Chengdu Huang wrote:

> This means every time we have a new swapoutable copy of a StoreEntry,
> it will be swapped out to a different swap file.

Yes.

> And I guess the old
> swap file of this StoreEntry will be removed by the disk space
> maintenance routine. Is that right?

Actually a little before that. Squid deletes the file when the last
reference to the old object is gone.

> I can imagine that this can avoid some race condition for simultaneous
> client requests, but wanna check with Squid vets here to make sure.

Squid knows if there is clients currently reading the (possibly old)
object, and it won't be deleted in such case until those clients are
done.

Regards
Henrik

Reply via email to