Commit 8642d91c authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Give VRT code a chance to see which method we are in.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2176 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 1e694c84
......@@ -311,6 +311,7 @@ struct sess {
double t_end;
enum step step;
unsigned cur_method;
unsigned handling;
unsigned char wantbody;
int err_code;
......
......@@ -298,15 +298,17 @@ vcl_handlingname(unsigned u)
#define VCL_RET_MAC(l,u,b,n)
#define VCL_MET_MAC(func, xxx, bitmap) \
#define VCL_MET_MAC(func, upper, bitmap) \
void \
VCL_##func##_method(struct sess *sp) \
{ \
\
sp->handling = 0; \
sp->cur_method = VCL_MET_ ## upper; \
WSP(sp, SLT_VCL_call, "%s", #func); \
sp->vcl->func##_func(sp); \
WSP(sp, SLT_VCL_return, "%s", vcl_handlingname(sp->handling)); \
sp->cur_method = 0; \
assert(sp->handling & bitmap); \
assert(!(sp->handling & ~bitmap)); \
}
......
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