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
5b969ad5
Commit
5b969ad5
authored
Jan 23, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the now unused queue of sessions.
parent
273788ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
cache_pool.c
bin/varnishd/cache/cache_pool.c
+1
-10
No files found.
bin/varnishd/cache/cache_pool.c
View file @
5b969ad5
...
...
@@ -104,7 +104,6 @@ struct pool {
struct
workerhead
idle
;
VTAILQ_HEAD
(,
pool_task
)
front_queue
;
VTAILQ_HEAD
(,
pool_task
)
back_queue
;
VTAILQ_HEAD
(,
sess
)
queue
;
VTAILQ_HEAD
(,
poolsock
)
socks
;
unsigned
nthr
;
unsigned
lqueue
;
...
...
@@ -279,14 +278,7 @@ Pool_Work_Thread(void *priv, struct worker *wrk)
continue
;
}
wrk
->
sp
=
VTAILQ_FIRST
(
&
pp
->
queue
);
if
(
wrk
->
sp
!=
NULL
)
{
/* Process queued requests, if any */
assert
(
pp
->
lqueue
>
0
);
VTAILQ_REMOVE
(
&
pp
->
queue
,
wrk
->
sp
,
list
);
wrk
->
do_what
=
pool_do_sess
;
pp
->
lqueue
--
;
}
else
if
(
!
VTAILQ_EMPTY
(
&
pp
->
socks
))
{
if
(
!
VTAILQ_EMPTY
(
&
pp
->
socks
))
{
/* Accept on a socket */
ps
=
VTAILQ_FIRST
(
&
pp
->
socks
);
VTAILQ_REMOVE
(
&
pp
->
socks
,
ps
,
list
);
...
...
@@ -505,7 +497,6 @@ pool_mkpool(unsigned pool_no)
XXXAN
(
pp
);
Lck_New
(
&
pp
->
mtx
,
lck_wq
);
VTAILQ_INIT
(
&
pp
->
queue
);
VTAILQ_INIT
(
&
pp
->
idle
);
VTAILQ_INIT
(
&
pp
->
socks
);
VTAILQ_INIT
(
&
pp
->
front_queue
);
...
...
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