Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
3e2c418d
Commit
3e2c418d
authored
Apr 22, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the beresp.do_* variables to busyobj
parent
931fa706
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+12
-12
generate.py
lib/libvcl/generate.py
+6
-6
No files found.
bin/varnishd/cache/cache_vrt_var.c
View file @
3e2c418d
...
...
@@ -190,25 +190,25 @@ VRT_l_beresp_saintmode(const struct req *req, double a)
#define VBERESP(dir, type, onm, field) \
void \
VRT_l_##dir##_##onm(
const struct req *req, type a)
\
VRT_l_##dir##_##onm(
struct busyobj *bo, type a)
\
{ \
CHECK_OBJ_NOTNULL(
req, REQ
_MAGIC); \
req
->field = a; \
CHECK_OBJ_NOTNULL(
bo, BUSYOBJ
_MAGIC); \
bo
->field = a; \
} \
\
type \
VRT_r_##dir##_##onm(const struct
req *req
) \
VRT_r_##dir##_##onm(const struct
busyobj *bo
) \
{ \
CHECK_OBJ_NOTNULL(
req, REQ
_MAGIC); \
return (
req
->field); \
CHECK_OBJ_NOTNULL(
bo, BUSYOBJ
_MAGIC); \
return (
bo
->field); \
}
VBERESP
(
beresp
,
unsigned
,
do_esi
,
busyobj
->
do_esi
)
VBERESP
(
beresp
,
unsigned
,
do_gzip
,
busyobj
->
do_gzip
)
VBERESP
(
beresp
,
unsigned
,
do_gunzip
,
busyobj
->
do_gunzip
)
VBERESP
(
beresp
,
unsigned
,
do_stream
,
busyobj
->
do_stream
)
VBERESP
(
beresp
,
unsigned
,
do_pass
,
busyobj
->
do_pass
)
VBERESP
(
beresp
,
unsigned
,
uncacheable
,
busyobj
->
do_pass
)
VBERESP
(
beresp
,
unsigned
,
do_esi
,
do_esi
)
VBERESP
(
beresp
,
unsigned
,
do_gzip
,
do_gzip
)
VBERESP
(
beresp
,
unsigned
,
do_gunzip
,
do_gunzip
)
VBERESP
(
beresp
,
unsigned
,
do_stream
,
do_stream
)
VBERESP
(
beresp
,
unsigned
,
do_pass
,
do_pass
)
VBERESP
(
beresp
,
unsigned
,
uncacheable
,
do_pass
)
/*--------------------------------------------------------------------*/
...
...
lib/libvcl/generate.py
View file @
3e2c418d
...
...
@@ -319,37 +319,37 @@ sp_variables = (
'BOOL'
,
(
'backend_response'
,),
(
'backend_response'
,),
'
cR
'
'
B
'
),
(
'beresp.do_stream'
,
'BOOL'
,
(
'backend_response'
,),
(
'backend_response'
,),
'
cR
'
'
B
'
),
(
'beresp.do_gzip'
,
'BOOL'
,
(
'backend_response'
,),
(
'backend_response'
,),
'
cR
'
'
B
'
),
(
'beresp.do_gunzip'
,
'BOOL'
,
(
'backend_response'
,),
(
'backend_response'
,),
'
cR
'
'
B
'
),
(
'beresp.do_pass'
,
'BOOL'
,
(
'backend_response'
,),
(
'backend_response'
,),
'
cR
'
'
B
'
),
(
'beresp.uncacheable'
,
'BOOL'
,
(
'backend_response'
,),
(
'backend_response'
,),
'
cR
'
'
B
'
),
(
'beresp.ttl'
,
'DURATION'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment