/*
- * $Id: neighbors.cc,v 1.326 2005/01/03 16:08:26 robertc Exp $
+ * $Id: neighbors.cc,v 1.327 2005/01/05 21:59:34 serassio Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
neighborsHtcpReply(const cache_key * key, htcpReplyData * htcp, const struct sockaddr_in *from)
{
- StoreEntry *e = storeGet(key);
+ StoreEntry *e = Store::Root().get(key);
MemObject *mem = NULL;
peer *p;
peer_t ntype = PEER_NONE;
debug(15, 6) ("neighborsHtcpReply: %s %s\n",
htcp->hit ? "HIT" : "MISS", storeKeyText(key));
- if (NULL != (e = storeGet(key)))
+ if (NULL != (e = Store::Root().get(key)))
mem = e->mem_obj;
if ((p = whichPeer(from)))
/*
- * $Id: net_db.cc,v 1.174 2005/01/03 16:08:26 robertc Exp $
+ * $Id: net_db.cc,v 1.175 2005/01/05 21:59:34 serassio Exp $
*
* DEBUG: section 38 Network Measurement Database
* AUTHOR: Duane Wessels
#include "squid.h"
#include "Store.h"
+#include "SwapDir.h"
#include "HttpRequest.h"
#include "HttpReply.h"
#include "MemObject.h"
* separately from the cache dirs, and also be settable in
* squid.conf RBC 20041225
*/
- snprintf(path, SQUID_MAXPATHLEN, "%s/netdb_state", Config.cacheSwap.swapDirs[0]->path);
+ snprintf(path, SQUID_MAXPATHLEN, "%s/netdb_state", dynamic_cast<SwapDir *>(Config.cacheSwap.swapDirs[0].getRaw())->path);
}
static void