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
01ccb320
Commit
01ccb320
authored
Aug 05, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate a couple of trivial uses of req->obj
parent
93d29280
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cache_esi_deliver.c
bin/varnishd/cache/cache_esi_deliver.c
+1
-1
cache_http1_deliver.c
bin/varnishd/cache/cache_http1_deliver.c
+2
-2
No files found.
bin/varnishd/cache/cache_esi_deliver.c
View file @
01ccb320
...
...
@@ -264,7 +264,7 @@ ESI_Deliver(struct req *req)
int
i
;
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
p
=
ObjGetattr
(
req
->
obj
->
obj
core
,
&
req
->
wrk
->
stats
,
OA_ESIDATA
,
&
l
);
p
=
ObjGetattr
(
req
->
objcore
,
&
req
->
wrk
->
stats
,
OA_ESIDATA
,
&
l
);
AN
(
p
);
assert
(
l
>
0
);
e
=
p
+
l
;
...
...
bin/varnishd/cache/cache_http1_deliver.c
View file @
01ccb320
...
...
@@ -235,12 +235,12 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
ssize_t
l
;
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
->
obj
,
OBJECT_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
->
obj
->
objcore
,
OBJCORE_MAGIC
);
req
->
res_mode
=
0
;
if
(
!
req
->
disable_esi
&&
req
->
obj
->
esidata
!=
NULL
)
{
if
(
!
req
->
disable_esi
&&
ObjGetattr
(
req
->
objcore
,
&
req
->
wrk
->
stats
,
OA_ESIDATA
,
NULL
)
!=
NULL
)
{
/* In ESI mode, we can't know the aggregate length */
req
->
res_mode
&=
~
RES_LEN
;
req
->
res_mode
|=
RES_ESI
;
...
...
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