Commit af94ef7d authored by Reza Naghibi's avatar Reza Naghibi

Allow now to be used in vcl_init

parent d0d20077
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include "cache_director.h" #include "cache_director.h"
#include "cache_vcl.h" #include "cache_vcl.h"
#include "vcli_serve.h" #include "vcli_serve.h"
#include "vtim.h"
const char * const VCL_TEMP_INIT = "init"; const char * const VCL_TEMP_INIT = "init";
const char * const VCL_TEMP_COLD = "cold"; const char * const VCL_TEMP_COLD = "cold";
...@@ -118,6 +119,7 @@ vcl_get_ctx(unsigned method, int msg) ...@@ -118,6 +119,7 @@ vcl_get_ctx(unsigned method, int msg)
handling_cli = 0; handling_cli = 0;
ctx_cli.handling = &handling_cli; ctx_cli.handling = &handling_cli;
ctx_cli.method = method; ctx_cli.method = method;
ctx_cli.now = VTIM_real();
if (msg) { if (msg) {
ctx_cli.msg = VSB_new_auto(); ctx_cli.msg = VSB_new_auto();
AN(ctx_cli.msg); AN(ctx_cli.msg);
......
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