/*
- * $Id: acl.cc,v 1.160 1998/04/16 18:06:32 wessels Exp $
+ * $Id: acl.cc,v 1.161 1998/04/22 16:24:12 rousskov Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
aclCheckFast(const acl_access * A, aclCheck_t * checklist)
{
int allow = 0;
+ debug(28, 5) ("aclCheckFast: list: %p\n", A);
while (A) {
allow = A->allow;
if (aclMatchAclList(A->acl_list, checklist))
return allow;
A = A->next;
}
+ debug(28, 5) ("aclCheckFast: no matches, returning: %d\n", !allow);
return !allow;
}
/*
- * $Id: neighbors.cc,v 1.197 1998/04/21 16:40:50 wessels Exp $
+ * $Id: neighbors.cc,v 1.198 1998/04/22 16:24:15 rousskov Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
peerDigestLookup(peer *p, request_t * request, StoreEntry * entry)
{
#if SQUID_PEER_DIGEST
- const cache_key *key = storeKeyPublic(storeUrl(entry), request->method);
+ const cache_key *key = request ? storeKeyPublic(storeUrl(entry), request->method) : NULL;
assert(p);
+ assert(request);
debug(15, 5) ("neighborsDigestPeerLookup: peer %s\n", p->host);
/* does the peeer have a valid digest? */
if (EBIT_TEST(p->digest.flags, PD_DISABLED)) {
/*
- * $Id: peer_select.cc,v 1.51 1998/04/18 05:41:54 rousskov Exp $
+ * $Id: peer_select.cc,v 1.52 1998/04/22 16:24:14 rousskov Exp $
*
* DEBUG: section 44 Peer Selection Algorithm
* AUTHOR: Duane Wessels
#if SQUID_PEER_DIGEST
/* which algorithm to use? */
if (squid_random() & 1) {
- debug(44, 3) ("peerSelect: Using Cache Digest\n");
+ debug(44, 2) ("peerSelect: Using Cache Digest\n");
request->hier.alg = PEER_SA_DIGEST;
if (1 /* global_digested_peer_count */)
p = neighborsDigestSelect(request, entry);
case LOOKUP_HIT:
assert(p);
code = CACHE_DIGEST_HIT;
- debug(44, 3) ("peerSelect: %s/%s\n", hier_strings[code], p->host);
+ debug(44, 2) ("peerSelect: %s/%s\n", hier_strings[code], p->host);
hierarchyNote(&request->hier, code, &psstate->icp, p->host);
peerSelectCallback(psstate, p); /* @?@: p used to be NULL */
return;
/* fall through */
case LOOKUP_NONE:
/* go direct */
- debug(44, 3) ("peerSelect: %s/%s\n", hier_strings[code], request->host);
+ debug(44, 2) ("peerSelect: %s/%s\n", hier_strings[code], request->host);
hierarchyNote(&request->hier, code, &psstate->icp, request->host);
peerSelectCallback(psstate, NULL);
return;
/*
- * $Id: stat.cc,v 1.242 1998/04/22 05:41:11 wessels Exp $
+ * $Id: stat.cc,v 1.243 1998/04/22 16:24:13 rousskov Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
statHistLogInit(&C->icp.server_svc_time, 300, 0.0, 3600000.0 * 30.0);
statHistEnumInit(&C->cd.peer_choice_count, Config.npeers);
statHistEnumInit(&C->cd.peer_ichoice_count, Config.npeers);
- statHistEnumInit(&C->cd.on_xition_count, CacheDigestHashCount);
+ statHistEnumInit(&C->cd.on_xition_count, CacheDigestHashFuncCount);
#endif
}
/*
- * $Id: store_rebuild.cc,v 1.33 1998/04/08 00:42:25 wessels Exp $
+ * $Id: store_rebuild.cc,v 1.34 1998/04/22 16:24:16 rousskov Exp $
*
* DEBUG: section 20 Store Rebuild Routines
* AUTHOR: Duane Wessels
if (opt_store_doublecheck)
assert(store_errors == 0);
if (store_digest)
- storeDigestRewriteStart(NULL);
+ storeDigestNoteStoreReady();
return;
}
link_next = hash_get_bucket(store_table, bucketnum);
int i;
memset(&RebuildState, '\0', sizeof(RebuildState));
RebuildState.start = squid_curtime;
-#if OLD_CODE
- if (store_digest)
- storeDigestRewriteStart("store-rebuild");
-#endif
for (i = 0; i < Config.cacheSwap.n_configured; i++) {
d = xcalloc(1, sizeof(rebuild_dir));
d->dirn = i;