[master] 5175539 Also call vmod::event on cold/warm/use events.

Poul-Henning Kamp phk at FreeBSD.org
Tue Jun 16 13:13:02 CEST 2015


commit 5175539a4ddd8f266ad9d4d69b4bfc8529e2e5c6
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Jun 16 11:12:30 2015 +0000

    Also call vmod::event on cold/warm/use events.

diff --git a/lib/libvcc/vcc_vmod.c b/lib/libvcc/vcc_vmod.c
index ffb70b7..e7a7f4f 100644
--- a/lib/libvcc/vcc_vmod.c
+++ b/lib/libvcc/vcc_vmod.c
@@ -205,6 +205,9 @@ vcc_ParseImport(struct vcc *tl)
 			VSB_printf(ifp->fin,
 			    "\t\t(void)%s(ctx, &vmod_priv_%.*s,\n"
 			    "\t\t    VCL_EVENT_DISCARD);\n", p, PF(mod));
+			VSB_printf(ifp->event,
+			    "\t(void)%s(ctx, &vmod_priv_%.*s, ev);\n",
+			    p, PF(mod));
 		} else {
 			sym = VCC_AddSymbolStr(tl, p, SYM_FUNC);
 			ERRCHK(tl);



More information about the varnish-commit mailing list