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
559e1cf5
Commit
559e1cf5
authored
Jan 19, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass worker explicitly to VBO_extend()
parent
393762be
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
cache.h
bin/varnishd/cache/cache.h
+1
-1
cache_busyobj.c
bin/varnishd/cache/cache_busyobj.c
+4
-2
cache_fetch_proc.c
bin/varnishd/cache/cache_fetch_proc.c
+1
-1
No files found.
bin/varnishd/cache/cache.h
View file @
559e1cf5
...
...
@@ -670,7 +670,7 @@ double BAN_Time(const struct ban *ban);
/* cache_busyobj.c */
struct
busyobj
*
VBO_GetBusyObj
(
struct
worker
*
,
const
struct
req
*
);
void
VBO_DerefBusyObj
(
struct
worker
*
wrk
,
struct
busyobj
**
busyobj
);
void
VBO_extend
(
struct
objcore
*
,
struct
busyobj
*
,
ssize_t
);
void
VBO_extend
(
struct
worker
*
,
struct
objcore
*
,
struct
busyobj
*
,
ssize_t
);
ssize_t
VBO_waitlen
(
struct
worker
*
,
struct
objcore
*
,
struct
busyobj
*
,
ssize_t
l
);
void
VBO_setstate
(
struct
busyobj
*
bo
,
enum
busyobj_state_e
next
);
...
...
bin/varnishd/cache/cache_busyobj.c
View file @
559e1cf5
...
...
@@ -221,16 +221,18 @@ VBO_DerefBusyObj(struct worker *wrk, struct busyobj **pbo)
}
void
VBO_extend
(
struct
objcore
*
oc
,
struct
busyobj
*
bo
,
ssize_t
l
)
VBO_extend
(
struct
worker
*
wrk
,
struct
objcore
*
oc
,
struct
busyobj
*
bo
,
ssize_t
l
)
{
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
CHECK_OBJ_NOTNULL
(
oc
,
OBJCORE_MAGIC
);
CHECK_OBJ_NOTNULL
(
bo
,
BUSYOBJ_MAGIC
);
if
(
l
==
0
)
return
;
assert
(
l
>
0
);
Lck_Lock
(
&
bo
->
mtx
);
ObjExtend
(
bo
->
wrk
,
oc
,
l
);
ObjExtend
(
wrk
,
oc
,
l
);
AZ
(
pthread_cond_broadcast
(
&
bo
->
cond
));
Lck_Unlock
(
&
bo
->
mtx
);
}
...
...
bin/varnishd/cache/cache_fetch_proc.c
View file @
559e1cf5
...
...
@@ -98,7 +98,7 @@ VFP_Extend(const struct vfp_ctx *vc, ssize_t sz)
{
CHECK_OBJ_NOTNULL
(
vc
,
VFP_CTX_MAGIC
);
VBO_extend
(
vc
->
oc
,
vc
->
bo
,
sz
);
VBO_extend
(
vc
->
wrk
,
vc
->
oc
,
vc
->
bo
,
sz
);
}
/**********************************************************************
...
...
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