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

Commit de8fe12

Browse files
committed
hash: Log the VXID of requests being rushed
This is very useful to manually verify the rush_exponent behavior.
1 parent 954a78e commit de8fe12

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

bin/varnishd/cache/cache_hash.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,7 @@ static void
700700
hsh_rush1(const struct worker *wrk, struct objcore *oc, struct rush *r, int max)
701701
{
702702
int i;
703+
unsigned xid = 0;
703704
struct req *req;
704705

705706
if (max == 0)
@@ -722,6 +723,13 @@ hsh_rush1(const struct worker *wrk, struct objcore *oc, struct rush *r, int max)
722723
req = VTAILQ_FIRST(&oc->waitinglist);
723724
if (req == NULL)
724725
break;
726+
727+
if (DO_DEBUG(DBG_WAITINGLIST)) {
728+
xid = VXID(req->vsl->wid);
729+
VSLb(wrk->vsl, SLT_Debug,
730+
"waiting list rush for req %u", xid);
731+
}
732+
725733
assert(oc->refcnt > 0);
726734
oc->refcnt++;
727735
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);

0 commit comments

Comments
 (0)