Mailing List Archive

r1005 - trunk/varnish-cache/bin/varnishd
Author: phk
Date: 2006-09-16 13:00:08 +0200 (Sat, 16 Sep 2006)
New Revision: 1005

Modified:
trunk/varnish-cache/bin/varnishd/mgt_vcc.c
Log:
Forgot about embedded CLI commands here.


Modified: trunk/varnish-cache/bin/varnishd/mgt_vcc.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_vcc.c 2006-09-16 10:36:23 UTC (rev 1004)
+++ trunk/varnish-cache/bin/varnishd/mgt_vcc.c 2006-09-16 11:00:08 UTC (rev 1005)
@@ -245,7 +245,7 @@
}
vsb_delete(sb);
if (child_pid >= 0 &&
- mgt_cli_askchild(&status, &p, "config.load %s %s\n", av[2], vf)) {
+ mgt_cli_askchild(&status, &p, "vcl.load %s %s\n", av[2], vf)) {
cli_result(cli, status);
cli_out(cli, "%s", p);
free(p);
@@ -276,7 +276,7 @@
}
vsb_delete(sb);
if (child_pid >= 0 &&
- mgt_cli_askchild(&status, &p, "config.load %s %s\n", av[2], vf)) {
+ mgt_cli_askchild(&status, &p, "vcl.load %s %s\n", av[2], vf)) {
cli_result(cli, status);
cli_out(cli, "%s", p);
free(p);
@@ -311,7 +311,7 @@
vp = mcf_find_vcl(cli, av[2]);
if (vp != NULL && vp->active == 0) {
if (child_pid >= 0 &&
- mgt_cli_askchild(&status, &p, "config.use %s\n", av[2])) {
+ mgt_cli_askchild(&status, &p, "vcl.use %s\n", av[2])) {
cli_result(cli, status);
cli_out(cli, "%s", p);
free(p);
@@ -342,7 +342,7 @@
} else if (vp != NULL) {
if (child_pid >= 0 &&
mgt_cli_askchild(&status, &p,
- "config.discard %s\n", av[2])) {
+ "vcl.discard %s\n", av[2])) {
cli_result(cli, status);
cli_out(cli, "%s", p);
free(p);
@@ -362,7 +362,7 @@
(void)av;
(void)priv;
if (child_pid >= 0) {
- mgt_cli_askchild(&status, &p, "config.list\n");
+ mgt_cli_askchild(&status, &p, "vcl.list\n");
cli_result(cli, status);
cli_out(cli, "%s", p);
free(p);