]> err.no Git - varnish/commitdiff
Call the init function when the VCL code is loaded.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Apr 2006 07:27:28 +0000 (07:27 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Apr 2006 07:27:28 +0000 (07:27 +0000)
We may want to postpone this to use time later on.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@94 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_vcl.c

index eda866f00ca2b6eb40fe0e7192244f2ab812c3e1..fdd5d3f145992ad5ca1bee96edaa769429278ac2 100644 (file)
@@ -94,6 +94,7 @@ CVCL_Load(const char *fn, const char *name)
                active_vcl = vcl;
        AZ(pthread_mutex_unlock(&sessmtx));
        fprintf(stderr, "Loaded \"%s\" as \"%s\"\n", fn , name);
+       vcl->conf->init_func();
        return (0);
 }