On Thu, 9 Feb 2006 fantacywall@hotmail.com wrote:
> I was remending the squid source code(squid2.5 stable12) to record more
> informations in swap.state.When i insert a sentence into the
> lines.....:(src/fs/aufs/store_dir_aufs.c :storeAufsDirSwapLog)
>
> static void
> storeAufsDirSwapLog(const SwapDir * sd, const StoreEntry * e, int op)
> {
> squidaioinfo_t *aioinfo = (squidaioinfo_t *) sd->fsdata;
> storeSwapLogData *s = memAllocate(MEM_SWAP_LOG_DATA);
> //i insert a sentence here,it's the only place i remend,just to print url
> debug(47,1) ("Current url is : %s\n",e->mem_obj->url);
> s->op = (char) op;
There is no guarantee there is a MemObject attached to the StoreEntry
here. Quite likely e->mem_obj is NULL.
Regards
Henrik
Received on Thu Feb 09 2006 - 14:51:06 MST
This archive was generated by hypermail pre-2.1.9 : Tue Feb 28 2006 - 12:00:05 MST