Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Commit 52655d7

Browse files
committed
SQUASHME: rename had_objcore to waitinglist_gen
To be squashed in "hash: Treat a waiting list match as a revalidation". Requested by Martin.
1 parent 1808b1e commit 52655d7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bin/varnishd/cache/cache_req_fsm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
576576
{
577577
struct objcore *oc, *busy;
578578
enum lookup_e lr;
579-
int had_objcore = 0;
579+
int waitinglist_gen;
580580

581581
CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC);
582582
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
@@ -585,11 +585,11 @@ cnt_lookup(struct worker *wrk, struct req *req)
585585
AN(req->vcl);
586586

587587
VRY_Prep(req);
588+
waitinglist_gen = req->waitinglist_gen;
588589

589590
if (req->waitinglist_gen) {
590591
CHECK_OBJ_NOTNULL(req->objcore, OBJCORE_MAGIC);
591592
req->waitinglist_gen = 0;
592-
had_objcore = 1;
593593
} else
594594
AZ(req->objcore);
595595

@@ -608,7 +608,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
608608
if ((unsigned)wrk->strangelove >= cache_param->vary_notice)
609609
VSLb(req->vsl, SLT_Notice, "vsl: High number of variants (%d)",
610610
wrk->strangelove);
611-
if (had_objcore)
611+
if (waitinglist_gen) {
612612
VSLb_ts_req(req, "Waitinglist", W_TIM_real(wrk));
613613

614614
if (req->vcf != NULL) {

0 commit comments

Comments
 (0)