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
4e0004ea
Commit
4e0004ea
authored
Feb 15, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate some grubbing around inside struct ws
parent
92e77b87
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
cache_req_fsm.c
bin/varnishd/cache/cache_req_fsm.c
+1
-1
cache_ws.c
bin/varnishd/cache/cache_ws.c
+1
-1
vmod_debug.c
lib/libvmod_debug/vmod_debug.c
+5
-2
No files found.
bin/varnishd/cache/cache_req_fsm.c
View file @
4e0004ea
...
...
@@ -915,7 +915,7 @@ CNT_Request(struct worker *wrk, struct req *req)
* empty on state-transitions.
*/
WS_Assert
(
wrk
->
aws
);
assert
(
wrk
->
aws
->
s
==
wrk
->
aws
->
f
);
AZ
(
WS_Snapshot
(
wrk
->
aws
)
);
switch
(
req
->
req_step
)
{
#define REQ_STEP(l,u,arg) \
...
...
bin/varnishd/cache/cache_ws.c
View file @
4e0004ea
...
...
@@ -215,7 +215,7 @@ WS_Snapshot(struct ws *ws)
WS_Assert
(
ws
);
assert
(
ws
->
r
==
NULL
);
DSL
(
DBG_WORKSPACE
,
0
,
"WS_Snapshot(%p) = %p"
,
ws
,
ws
->
f
);
return
((
uintptr_t
)
ws
->
f
);
return
(
ws
->
f
==
ws
->
s
?
0
:
(
uintptr_t
)
ws
->
f
);
}
unsigned
...
...
lib/libvmod_debug/vmod_debug.c
View file @
4e0004ea
...
...
@@ -420,14 +420,17 @@ VCL_INT
vmod_workspace_free
(
VRT_CTX
,
VCL_ENUM
which
)
{
struct
ws
*
ws
;
unsigned
u
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
ws
=
wsfind
(
ctx
,
which
);
WS_Assert
(
ws
);
AZ
(
ws
->
r
);
u
=
WS_Reserve
(
ws
,
0
);
WS_Release
(
ws
,
0
);
return
(
pdiff
(
ws
->
f
,
ws
->
e
)
);
return
(
u
);
}
VCL_BOOL
...
...
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