]> err.no Git - varnish/commitdiff
Now that ESI parsing is not done while we execute vcl_fetch{}, the
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 27 Feb 2009 16:09:03 +0000 (16:09 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 27 Feb 2009 16:09:03 +0000 (16:09 +0000)
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: svn+ssh://projects.linpro.no/svn/varnish/trunk@3839 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/Makefile.am
varnish-cache/bin/varnishd/cache_esi.c [moved from varnish-cache/bin/varnishd/cache_vrt_esi.c with 98% similarity]
varnish-cache/bin/varnishd/cache_vrt.c

index 2c445fbd446fb359e122f79ca0eb699e6c04c622..4f6e7ac29fb59733e1e61355d13d0d65eaa588e7 100644 (file)
@@ -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 \
similarity index 98%
rename from varnish-cache/bin/varnishd/cache_vrt_esi.c
rename to varnish-cache/bin/varnishd/cache_esi.c
index 7bf3c935ca0078e23c8c50daad518deb216ce3ff..48c807d7d52f2bf28a247579f47f7ef2b23c4e08 100644 (file)
@@ -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)
 {
index 20be6e35c8d053e26a2a96d81ba70b560fd13b98..7d90fdbd4f971f0ecfea25f5842c0512e6296b32 100644 (file)
@@ -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, ...)