Commit f8b5e53d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Implement the "purge" action, now that we have renamed "the facility

previously known as purge" to ban.
parent 4f9d45bc
......@@ -363,6 +363,16 @@ parse_rollback(struct vcc *tl)
/*--------------------------------------------------------------------*/
static void
parse_purge(struct vcc *tl)
{
vcc_NextToken(tl);
Fb(tl, 1, "VRT_purge(sp, 0, 0);\n");
}
/*--------------------------------------------------------------------*/
static void
parse_synthetic(struct vcc *tl)
{
......@@ -402,6 +412,7 @@ static struct action_table {
{ "set", parse_set },
{ "synthetic", parse_synthetic },
{ "unset", parse_unset },
{ "purge", parse_purge, VCL_MET_MISS | VCL_MET_HIT },
{ NULL, NULL }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment