From: wessels <> Date: Thu, 12 Jan 2006 04:10:56 +0000 (+0000) Subject: Minor debugging changes to StoreEntry constructor/destructor X-Git-Tag: SQUID_3_0_PRE4~371 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59dbbc5caa5a0f9e3af944f1a8701596486ef8f2;p=thirdparty%2Fsquid.git Minor debugging changes to StoreEntry constructor/destructor --- diff --git a/src/store.cc b/src/store.cc index 8659e2dc74..3e49e41eb8 100644 --- a/src/store.cc +++ b/src/store.cc @@ -1,6 +1,6 @@ /* - * $Id: store.cc,v 1.581 2005/11/21 22:20:12 wessels Exp $ + * $Id: store.cc,v 1.582 2006/01/11 21:10:56 wessels Exp $ * * DEBUG: section 20 Storage Manager * AUTHOR: Harvest Derived @@ -323,10 +323,9 @@ StoreEntry::storeClientType() const StoreEntry::StoreEntry() { + debugs(20, 3, HERE << "new StoreEntry " << this); mem_obj = NULL; - debugs(20, 3, "newStoreEntry: returning " << this); - expires = lastmod = lastref = timestamp = -1; swap_filen = -1; @@ -335,10 +334,9 @@ StoreEntry::StoreEntry() StoreEntry::StoreEntry(const char *url, const char *log_url) { + debugs(20, 3, HERE << "new StoreEntry " << this); mem_obj = new MemObject(url, log_url); - debugs(20, 3, "newStoreEntry: returning " << this); - expires = lastmod = lastref = timestamp = -1; swap_filen = -1; @@ -348,6 +346,7 @@ StoreEntry::StoreEntry(const char *url, const char *log_url) static void destroy_MemObject(StoreEntry * e) { + debugs(20, 3, HERE << "destroy mem_obj" << e->mem_obj); storeSetMemStatus(e, NOT_IN_MEMORY); MemObject *mem = e->mem_obj; e->mem_obj = NULL; @@ -357,8 +356,8 @@ destroy_MemObject(StoreEntry * e) void destroyStoreEntry(void *data) { + debugs(20, 3, HERE << "destroyStoreEntry: destroying " << data); StoreEntry *e = static_cast(static_cast(data)); - debug(20, 3) ("destroyStoreEntry: destroying %p\n", e); assert(e != NULL); if (e == NullStoreEntry::getInstance())