Mailing List Archive

[master] 651bff316 Oops, last commit missed these.
commit 651bff31609f4cdde1eadf1beac2e28212002976
Author: Poul-Henning Kamp <phk@FreeBSD.org>
Date: Wed Nov 24 12:34:18 2021 +0000

Oops, last commit missed these.

diff --git a/include/vrt.h b/include/vrt.h
index 5e99b242d..a47250255 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -55,6 +55,7 @@
*
* Next (2021-03-15)
* VRT_Assign_Backend added
+ * VRT_StaticDirector added
*
* 14.0 (2021-09-15)
* VIN_n_Arg() no directly returns the directory name.
@@ -683,6 +684,7 @@ VCL_VOID VRT_SetChanged(VCL_BACKEND, VCL_TIME);
VCL_BACKEND VRT_AddDirector(VRT_CTX, const struct vdi_methods *,
void *, const char *, ...) v_printflike_(4, 5);
void VRT_DisableDirector(VCL_BACKEND);
+void VRT_StaticDirector(VCL_BACKEND);
VCL_BACKEND VRT_LookupDirector(VRT_CTX, VCL_STRING);
void VRT_DelDirector(VCL_BACKEND *);
void VRT_Assign_Backend(VCL_BACKEND *dst, VCL_BACKEND src);
diff --git a/lib/libvcc/vcc_backend.c b/lib/libvcc/vcc_backend.c
index 4fac23c20..8b357a58e 100644
--- a/lib/libvcc/vcc_backend.c
+++ b/lib/libvcc/vcc_backend.c
@@ -572,8 +572,10 @@ vcc_ParseHostDef(struct vcc *tl, const struct token *t_be, const char *vgcname)
ifp = New_IniFin(tl);
VSB_printf(ifp->ini,
"\t%s =\n\t VRT_new_backend_clustered(ctx, vsc_cluster,\n"
- "\t\t&vgc_dir_priv_%s);",
+ "\t\t&vgc_dir_priv_%s);\n",
vgcname, vgcname);
+ VSB_printf(ifp->ini,
+ "\tif (%s)\n\t\tVRT_StaticDirector(%s);", vgcname, vgcname);
VSB_printf(ifp->fin, "\t\tVRT_delete_backend(ctx, &%s);", vgcname);
}

_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit