Commit 96d26e50 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Now that ESI parsing is not done while we execute vcl_fetch{}, the

majority of the cache_vrt_esi.c file is no longer "VRT" relevant.

Move the one function which is VRT to cache_vrt.c and rename
cache_vrt_esi.c to cache_esi.c



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3839 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 46026dae
......@@ -21,6 +21,7 @@ varnishd_SOURCES = \
cache_dir_random.c \
cache_dir_round_robin.c \
cache_dir_simple.c \
cache_esi.c \
cache_expire.c \
cache_fetch.c \
cache_hash.c \
......@@ -36,7 +37,6 @@ varnishd_SOURCES = \
cache_vary.c \
cache_vcl.c \
cache_vrt.c \
cache_vrt_esi.c \
cache_vrt_re.c \
cache_ws.c \
hash_classic.c \
......
......@@ -636,22 +636,6 @@ parse_esi_tag(struct esi_work *ew, int closing)
/*--------------------------------------------------------------------*/
void
VRT_ESI(struct sess *sp)
{
CHECK_OBJ_NOTNULL(sp->bereq, BEREQ_MAGIC);
if (sp->cur_method != VCL_MET_FETCH) {
/* XXX: we should catch this at compile time */
WSP(sp, SLT_VCL_error,
"esi can only be called from vcl_fetch");
return;
}
sp->bereq->do_esi = 1;
}
void
ESI_Parse(struct sess *sp)
{
......
......@@ -776,6 +776,23 @@ VRT_Rollback(struct sess *sp)
/*--------------------------------------------------------------------*/
void
VRT_ESI(struct sess *sp)
{
CHECK_OBJ_NOTNULL(sp->bereq, BEREQ_MAGIC);
if (sp->cur_method != VCL_MET_FETCH) {
/* XXX: we should catch this at compile time */
WSP(sp, SLT_VCL_error,
"esi can only be called from vcl_fetch");
return;
}
sp->bereq->do_esi = 1;
}
/*--------------------------------------------------------------------*/
/*lint -e{818} sp could be const */
void
VRT_panic(struct sess *sp, const char *str, ...)
......
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