Skip to content

Commit

Permalink
Allow now to be used in vcl_init
Browse files Browse the repository at this point in the history
  • Loading branch information
rezan committed Dec 13, 2018
1 parent d0d2007 commit af94ef7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/varnishd/cache/cache_vcl.c
Expand Up @@ -43,6 +43,7 @@
#include "cache_director.h"
#include "cache_vcl.h"
#include "vcli_serve.h"
#include "vtim.h"

const char * const VCL_TEMP_INIT = "init";
const char * const VCL_TEMP_COLD = "cold";
Expand Down Expand Up @@ -118,6 +119,7 @@ vcl_get_ctx(unsigned method, int msg)
handling_cli = 0;
ctx_cli.handling = &handling_cli;
ctx_cli.method = method;
ctx_cli.now = VTIM_real();
if (msg) {
ctx_cli.msg = VSB_new_auto();
AN(ctx_cli.msg);
Expand Down

0 comments on commit af94ef7

Please sign in to comment.