[master] ee1b415 Emit SLT_HitPass log records

Martin Blix Grydeland martin at varnish-cache.org
Thu Oct 31 12:21:09 CET 2013


commit ee1b415fab5131fc11f0d69a0fc4ef3a620cfd59
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date:   Mon Oct 28 17:00:07 2013 +0100

    Emit SLT_HitPass log records

diff --git a/bin/varnishd/cache/cache_req_fsm.c b/bin/varnishd/cache/cache_req_fsm.c
index fe089cd..00bc090 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -392,6 +392,7 @@ cnt_lookup(struct worker *wrk, struct req *req)
 	if (oc->flags & OC_F_PASS) {
 		/* Found a hit-for-pass */
 		VSLb(req->vsl, SLT_Debug, "XXXX HIT-FOR-PASS");
+		VSLb(req->vsl, SLT_HitPass, "%u", req->obj->vxid);
 		AZ(boc);
 		(void)HSH_DerefObjCore(&wrk->stats, &oc);
 		req->objcore = NULL;
diff --git a/include/tbl/vsl_tags.h b/include/tbl/vsl_tags.h
index 7457066..4edea09 100644
--- a/include/tbl/vsl_tags.h
+++ b/include/tbl/vsl_tags.h
@@ -294,7 +294,10 @@ SLTM(Hit, "Hit object in cache",
 	"Object looked up in cache. Shows the VXID of the object.\n\n"
 )
 
-SLTM(HitPass, "Hit for pass object in cache (unused)", "")
+SLTM(HitPass, "Hit for pass object in cache.\n\n",
+	"Hit-for-pass object looked up in cache. Shows the VXID of the"
+	" hit-for-pass object.\n\n"
+)
 
 SLTM(ExpBan, "Object evicted due to ban",
 	"Logs the VXID when an object is banned.\n\n"



More information about the varnish-commit mailing list