Flexelint e74abf89

parent 7d8e4a4f
......@@ -397,7 +397,6 @@ HSH_Lookup(struct req *req, struct objcore **ocp, struct objcore **bocp)
busy_found = 0;
exp_oc = NULL;
exp_t_origin = 0.0;
wrk->strangelove = 0;
VTAILQ_FOREACH(oc, &oh->objcs, hsh_list) {
/* Must be at least our own ref + the objcore we examine */
assert(oh->refcnt > 1);
......
......@@ -542,8 +542,10 @@ cnt_lookup(struct worker *wrk, struct req *req)
AZ(req->objcore);
if (req->hash_objhead)
had_objhead = 1;
wrk->strangelove = 0;
lr = HSH_Lookup(req, &oc, &busy);
if (wrk->strangelove >= cache_param->vary_notice)
assert(wrk->strangelove >= 0);
if ((unsigned)wrk->strangelove >= cache_param->vary_notice)
VSLb(req->vsl, SLT_Notice, "vsl: High number of variants (%d)",
wrk->strangelove);
if (lr == HSH_BUSY) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment