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

Commit f6c5607

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

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
@@ -715,6 +715,7 @@ hsh_rush1(const struct worker *wrk, struct objcore *oc, struct rush *r)
715715
{
716716
struct objhead *oh;
717717
struct req *req;
718+
unsigned xid;
718719
int max, i;
719720

720721
CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC);
@@ -737,6 +738,13 @@ hsh_rush1(const struct worker *wrk, struct objcore *oc, struct rush *r)
737738
req = VTAILQ_FIRST(&oh->waitinglist);
738739
if (req == NULL)
739740
break;
741+
742+
if (DO_DEBUG(DBG_WAITINGLIST)) {
743+
xid = VXID(req->vsl->wid);
744+
VSLb(wrk->vsl, SLT_Debug,
745+
"waiting list rush for req %u", xid);
746+
}
747+
740748
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
741749
wrk->stats->busy_wakeup++;
742750
AZ(req->wrk);

0 commit comments

Comments
 (0)