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
b094d583
Commit
b094d583
authored
Apr 29, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give the busyobj a copy (+ref) of the req's vcl and director.
parent
19150844
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
cache.h
bin/varnishd/cache/cache.h
+2
-0
cache_busyobj.c
bin/varnishd/cache/cache_busyobj.c
+6
-0
No files found.
bin/varnishd/cache/cache.h
View file @
b094d583
...
...
@@ -539,6 +539,8 @@ struct busyobj {
double
between_bytes_timeout
;
const
char
*
storage_hint
;
struct
director
*
director
;
struct
VCL_conf
*
vcl
;
struct
vsl_log
vsl
[
1
];
struct
dstat
*
stats
;
...
...
bin/varnishd/cache/cache_busyobj.c
View file @
b094d583
...
...
@@ -141,6 +141,10 @@ VBO_GetBusyObj(struct worker *wrk, struct req *req)
bo
->
do_stream
=
1
;
bo
->
director
=
req
->
director
;
bo
->
vcl
=
req
->
vcl
;
VCL_Ref
(
bo
->
vcl
);
return
(
bo
);
}
...
...
@@ -183,6 +187,8 @@ VBO_DerefBusyObj(struct worker *wrk, struct busyobj **pbo)
(
void
)
HSH_Deref
(
&
wrk
->
stats
,
NULL
,
&
bo
->
fetch_obj
);
}
VCL_Rel
(
&
bo
->
vcl
);
memset
(
&
bo
->
refcount
,
0
,
sizeof
*
bo
-
offsetof
(
struct
busyobj
,
refcount
));
...
...
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