Skip to content

Commit

Permalink
No need to use bogos vcl names with -C
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed May 25, 2020
1 parent 8de6262 commit d5e5d47
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bin/varnishd/mgt/mgt_vcl.c
Expand Up @@ -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)");
Expand Down

0 comments on commit d5e5d47

Please sign in to comment.