Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
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
Show 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 {
...
@@ -539,6 +539,8 @@ struct busyobj {
double
between_bytes_timeout
;
double
between_bytes_timeout
;
const
char
*
storage_hint
;
const
char
*
storage_hint
;
struct
director
*
director
;
struct
VCL_conf
*
vcl
;
struct
vsl_log
vsl
[
1
];
struct
vsl_log
vsl
[
1
];
struct
dstat
*
stats
;
struct
dstat
*
stats
;
...
...
bin/varnishd/cache/cache_busyobj.c
View file @
b094d583
...
@@ -141,6 +141,10 @@ VBO_GetBusyObj(struct worker *wrk, struct req *req)
...
@@ -141,6 +141,10 @@ VBO_GetBusyObj(struct worker *wrk, struct req *req)
bo
->
do_stream
=
1
;
bo
->
do_stream
=
1
;
bo
->
director
=
req
->
director
;
bo
->
vcl
=
req
->
vcl
;
VCL_Ref
(
bo
->
vcl
);
return
(
bo
);
return
(
bo
);
}
}
...
@@ -183,6 +187,8 @@ VBO_DerefBusyObj(struct worker *wrk, struct busyobj **pbo)
...
@@ -183,6 +187,8 @@ VBO_DerefBusyObj(struct worker *wrk, struct busyobj **pbo)
(
void
)
HSH_Deref
(
&
wrk
->
stats
,
NULL
,
&
bo
->
fetch_obj
);
(
void
)
HSH_Deref
(
&
wrk
->
stats
,
NULL
,
&
bo
->
fetch_obj
);
}
}
VCL_Rel
(
&
bo
->
vcl
);
memset
(
&
bo
->
refcount
,
0
,
memset
(
&
bo
->
refcount
,
0
,
sizeof
*
bo
-
offsetof
(
struct
busyobj
,
refcount
));
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