Puzzled at storeSetPrivateKey. :-(

From: <maer727@dont-contact.us>
Date: Mon, 22 Apr 2002 19:46:50 +0800 (CST)

Hi, pals!

The source codes are taken from storeSetPrivateKey,

 if (e->hash.key) {
        if (e->swap_filen > -1)
            storeDirSwapLog(e, SWAP_LOG_DEL);

I think when e->swap_filen > -1 is true, it means that the
object or a part of the object is on disk. storeDirSwapLog is
used to write the log file.

So if the object is wholly in memory, it is no need to write
the log file.

So I think the log file of Squid does not log pure memory
manipulation of a cached object. For example, deleting an object
(wholly in memory) from hash table will not be logged. :-)

Am I correct?

Best regards,
George Ma
Received on Mon Apr 22 2002 - 05:46:59 MDT

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