[master] 3e2c418 Move the beresp.do_* variables to busyobj
Poul-Henning Kamp
phk at varnish-cache.org
Mon Apr 22 15:17:47 CEST 2013
commit 3e2c418dd640dbf5cf2da2008c87faf925168b0d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Apr 22 13:17:36 2013 +0000
Move the beresp.do_* variables to busyobj
diff --git a/bin/varnishd/cache/cache_vrt_var.c b/bin/varnishd/cache/cache_vrt_var.c
index bd75951..3b5bcc7 100644
--- a/bin/varnishd/cache/cache_vrt_var.c
+++ b/bin/varnishd/cache/cache_vrt_var.c
@@ -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)
/*--------------------------------------------------------------------*/
diff --git a/lib/libvcl/generate.py b/lib/libvcl/generate.py
index b38eb8e..67fe7af 100755
--- a/lib/libvcl/generate.py
+++ b/lib/libvcl/generate.py
@@ -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',
More information about the varnish-commit
mailing list