[master] e259c586e Dump req->topreq
Poul-Henning Kamp
phk at FreeBSD.org
Thu Dec 13 10:13:11 UTC 2018
commit e259c586ef64f38562e49de506f666d68d3a84cc
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Thu Dec 13 07:58:27 2018 +0000
Dump req->topreq
diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index c1da769d8..c0ef87130 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -455,6 +455,20 @@ pan_busyobj(struct vsb *vsb, const struct busyobj *bo)
/*--------------------------------------------------------------------*/
+static void
+pan_top(struct vsb *vsb, const struct reqtop *top)
+{
+ VSB_printf(vsb, "top = %p {\n", top);
+ if (PAN_already(vsb, top))
+ return;
+ VSB_indent(vsb, 2);
+ pan_req(vsb, top->topreq);
+ VSB_indent(vsb, -2);
+ VSB_printf(vsb, "},\n");
+}
+
+/*--------------------------------------------------------------------*/
+
static void
pan_req(struct vsb *vsb, const struct req *req)
{
@@ -528,6 +542,9 @@ pan_req(struct vsb *vsb, const struct req *req)
pan_privs(vsb, req->privs);
+ if (req->top != NULL)
+ pan_top(vsb, req->top);
+
VSB_indent(vsb, -2);
VSB_printf(vsb, "},\n");
}
More information about the varnish-commit
mailing list