]> err.no Git - varnish/commit
Make vcl.reload keep old VCL
authorTollef Fog Heen <tfheen@err.no>
Tue, 25 Nov 2008 23:55:34 +0000 (00:55 +0100)
committerTollef Fog Heen <tfheen@err.no>
Fri, 30 Jan 2009 12:06:42 +0000 (13:06 +0100)
commit1f8ac7c240505638158de2a17624552e87c4fe19
tree8c743c1944fb8f376e302c3a75bbba07f971d4f9
parent621b0e80b8298c527876bc07e2e1d8b983085fcb
Make vcl.reload keep old VCL

vcl.reload foo now works as follows:

- drop foo.old (unless it is active, in which case we whine and stop)
- rename foo to foo.old
- compile foo, if this fails, rename foo.old to foo again
- if foo was active, switch to foo (from foo.old)
varnish-cache/bin/varnishd/cache_vcl.c
varnish-cache/bin/varnishd/mgt_vcc.c
varnish-cache/bin/varnishtest/tests/c00020.vtc
varnish-cache/bin/varnishtest/tests/c00023.vtc
varnish-cache/lib/libvcl/vcc_fixed_token.c