Re: [squid-users] storeClientCopy

From: Adrian Chadd <adrian@dont-contact.us>
Date: Tue, 21 Aug 2001 10:05:13 -0600

On Tue, Aug 21, 2001, James wrote:
> Hello List,
>
> One more quick questions for Guru's who knows the storage manager well.
>
> In store_client.c What these functions do
>
> StoreClientCopy()
> StoreClientCopy2()
> StoreClientCopy3()
>
>
> I think it is called while sending data to the client.
>
> But when the invokehandler() is called it directly invokes the storeClientCopy2().
>

Ok..

storeClientCopy() sets up the store client informationn
storeClientCopy2() checks to see whether another copy is happening,
and locks/unlocks the store client data.
storeClientCopy3() actually does the copying.

There's no need for InvokeHandlers() to resetup the store client info,
as its already done, and it can't call storeClientCopy3() without doing
most of the locking/unlocking storeClientCopy2() does for you.

Adrian
Received on Tue Aug 21 2001 - 10:05:13 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:52 MST