static int event_warm(VRT_CTX) { VSL(SLT_Debug, 0, "%s: VCL_EVENT_WARM", VCL_Name(ctx->vcl)); if (cache_param->max_esi_depth == 42) { VSB_printf(ctx->msg, "max_esi_depth is not the answer."); return (-1); } VRT_ref_vcl(ctx); return (0); }
static int event_warm(VRT_CTX, const struct vmod_priv *priv) { struct priv_vcl *priv_vcl; char buf[32]; VSL(SLT_Debug, 0, "%s: VCL_EVENT_WARM", VCL_Name(ctx->vcl)); AN(ctx->msg); if (cache_param->max_esi_depth == 42) { VSB_printf(ctx->msg, "max_esi_depth is not the answer."); return (-1); } CAST_OBJ_NOTNULL(priv_vcl, priv->priv, PRIV_VCL_MAGIC); AZ(priv_vcl->vcl); AZ(priv_vcl->vclref); bprintf(buf, "vmod-debug ref on %s", VCL_Name(ctx->vcl)); priv_vcl->vcl = ctx->vcl; priv_vcl->vclref = VRT_ref_vcl(ctx, buf); return (0); }