[master] d5e5d47b4 No need to use bogos vcl names with -C
Poul-Henning Kamp
phk at FreeBSD.org
Mon May 25 08:17:07 UTC 2020
commit d5e5d47b4305cf9f8148419cd2ae3e8ed335528f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon May 25 08:14:51 2020 +0000
No need to use bogos vcl names with -C
diff --git a/bin/varnishd/mgt/mgt_vcl.c b/bin/varnishd/mgt/mgt_vcl.c
index c15d3879d..359877aa4 100644
--- a/bin/varnishd/mgt/mgt_vcl.c
+++ b/bin/varnishd/mgt/mgt_vcl.c
@@ -424,14 +424,10 @@ mgt_new_vcl(struct cli *cli, const char *vclname, const char *vclsrc,
char *lib, *p;
struct vclprog *vp;
const struct vclstate *vs;
- char buf[32];
AN(cli);
- if (C_flag) {
- bprintf(buf, ".CflagTest.%d", (int)getpid());
- vclname = buf;
- } else if (vcl_count >= mgt_param.max_vcl &&
+ if (vcl_count >= mgt_param.max_vcl &&
mgt_param.max_vcl_handling == 2) {
VCLI_Out(cli, "Too many (%d) VCLs already loaded\n", vcl_count);
VCLI_Out(cli, "(See max_vcl and max_vcl_handling parameters)");
More information about the varnish-commit
mailing list