Chris Wedgwood writes:
>On Wed, Sep 02, 1998 at 11:48:44AM +1000, Anthony Baxter wrote:
>
>> Yep. unlink is handled by threads.
>
>Fair 'nuf - but how is synchronization of the swap done then. i.e.
>one thread unlinks a file while another tried to send it to a client?
This situation should not arise.
If the StoreEntry is locked, then the disk file won't be unlinked.
If the StoreEntry is unlocked, then the StoreEntry will be deleted
before the file is unlinked. So it won't be found by the
second client.
There might be other race conditions, but this is not one of them.
Duane W.
Received on Tue Jul 29 2003 - 13:15:54 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:11:55 MST