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
0be9404f
Commit
0be9404f
authored
Jan 06, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rush the objheader if there is a waiting list when it is deref'ed.
Fixes: #1823
parent
21eb5204
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cache_hash.c
bin/varnishd/cache/cache_hash.c
+4
-0
No files found.
bin/varnishd/cache/cache_hash.c
View file @
0be9404f
...
@@ -820,6 +820,10 @@ HSH_DerefObjHead(struct worker *wrk, struct objhead **poh)
...
@@ -820,6 +820,10 @@ HSH_DerefObjHead(struct worker *wrk, struct objhead **poh)
oh
->
refcnt
--
;
oh
->
refcnt
--
;
Lck_Unlock
(
&
oh
->
mtx
);
Lck_Unlock
(
&
oh
->
mtx
);
return
(
1
);
return
(
1
);
}
else
if
(
oh
->
waitinglist
!=
NULL
)
{
Lck_Lock
(
&
oh
->
mtx
);
hsh_rush
(
wrk
,
oh
);
Lck_Unlock
(
&
oh
->
mtx
);
}
}
assert
(
oh
->
refcnt
>
0
);
assert
(
oh
->
refcnt
>
0
);
...
...
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