On Thu, 9 Feb 2006 [EMAIL PROTECTED] 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

Reply via email to