Commit 725c8c2b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add forward SLT_Link records from req->esireq and req->bereq

Prodded by:	Martin
parent 8ae7647d
......@@ -760,7 +760,7 @@ double BAN_Time(const struct ban *ban);
/* cache_busyobj.c */
void VBO_Init(void);
struct busyobj *VBO_GetBusyObj(struct worker *, const struct req *);
struct busyobj *VBO_GetBusyObj(struct worker *, struct req *);
void VBO_DerefBusyObj(struct worker *wrk, struct busyobj **busyobj);
void VBO_Free(struct busyobj **vbo);
......
......@@ -87,7 +87,7 @@ VBO_Free(struct busyobj **bop)
}
struct busyobj *
VBO_GetBusyObj(struct worker *wrk, const struct req *req)
VBO_GetBusyObj(struct worker *wrk, struct req *req)
{
struct busyobj *bo = NULL;
uint16_t nhttp;
......@@ -130,6 +130,7 @@ VBO_GetBusyObj(struct worker *wrk, const struct req *req)
VSL_Setup(bo->vsl, p, sz);
bo->vsl->wid = VXID_Get(&wrk->vxid_pool) | VSL_BACKENDMARKER;
VSLb(bo->vsl, SLT_Link, "req %u", req->vsl->wid & VSL_IDENTMASK);
VSLb(req->vsl, SLT_Link, "bereq %u", bo->vsl->wid & VSL_IDENTMASK);
p += sz;
p = (void*)PRNDUP(p);
assert(p < bo->end);
......
......@@ -61,6 +61,7 @@ ved_include(struct req *preq, const char *src, const char *host)
req = SES_GetReq(wrk, preq->sp);
VSLb(req->vsl, SLT_Link, "req %u", preq->vsl->wid & VSL_IDENTMASK);
VSLb(preq->vsl, SLT_Link, "esireq %u", req->vsl->wid & VSL_IDENTMASK);
req->esi_level = preq->esi_level + 1;
HTTP_Copy(req->http0, preq->http0);
......
......@@ -162,5 +162,7 @@ SLTM(Link, "Linkage between different VXIDs",
"The first field gives the type of the parent:\n"
" req Request\n"
" sess Session\n"
" bereq Backend request\n"
" esireq ESI subrequest\n"
"The second field gives the VXID if the parent.\n"
)
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