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
f3f8aa16
Commit
f3f8aa16
authored
Feb 02, 2019
by
Guillaume Quintard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Directly use ctx->ws (thanks Nils)
parent
9023b992
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+2
-9
No files found.
bin/varnishd/cache/cache_vrt_var.c
View file @
f3f8aa16
...
...
@@ -690,10 +690,9 @@ VRT_r_bereq_xid(VRT_CTX)
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
bo
,
BUSYOBJ_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
bo
->
bereq
,
HTTP_MAGIC
);
AN
(
ctx
->
bo
->
vsl
);
return
(
WS_Printf
(
ctx
->
bo
->
bereq
->
ws
,
"%u"
,
return
(
WS_Printf
(
ctx
->
ws
,
"%u"
,
VXID
(
ctx
->
bo
->
vsl
->
wid
)));
}
...
...
@@ -701,25 +700,19 @@ VCL_STRING
VRT_r_sess_xid
(
VRT_CTX
)
{
struct
sess
*
sp
;
struct
http
*
http
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
if
(
ctx
->
req
)
{
CHECK_OBJ
(
ctx
->
req
,
REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
req
->
http
,
HTTP_MAGIC
);
sp
=
ctx
->
req
->
sp
;
http
=
ctx
->
req
->
http
;
}
else
{
CHECK_OBJ_NOTNULL
(
ctx
->
bo
,
BUSYOBJ_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
bo
->
bereq
,
HTTP_MAGIC
);
sp
=
ctx
->
bo
->
sp
;
http
=
ctx
->
bo
->
bereq
;
}
CHECK_OBJ_NOTNULL
(
http
,
HTTP_MAGIC
);
CHECK_OBJ_NOTNULL
(
sp
,
SESS_MAGIC
);
return
(
WS_Printf
(
http
->
ws
,
"%u"
,
VXID
(
sp
->
vxid
)));
return
(
WS_Printf
(
ctx
->
ws
,
"%u"
,
VXID
(
sp
->
vxid
)));
}
/*--------------------------------------------------------------------
...
...
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