Commit a17468cf authored by Dridi Boukelmoune's avatar Dridi Boukelmoune Committed by Denis Brækhus

Enable more than one reload per second

And make it possible to reload several labels in a short time. Make sure
the date is always UTC.
parent 263be5af
......@@ -94,7 +94,9 @@ fail() {
}
vcl_reload_name() {
printf "reload_%s" "$(date +%Y%m%d_%H%M%S)"
# NB: The PID compensates the lack of sub-second resolution.
# Varnish will vcl.list in chronological vcl.load order anyway.
printf "reload_%s" "$(date -u +%Y%m%d_%H%M%S_$$)"
}
awk_vcl_list() {
......
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