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
086fd762
Commit
086fd762
authored
Oct 06, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor simplification
parent
f8be8b03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
21 deletions
+4
-21
cache_backend.c
bin/varnishd/cache/cache_backend.c
+4
-21
No files found.
bin/varnishd/cache/cache_backend.c
View file @
086fd762
...
...
@@ -202,24 +202,6 @@ vbe_CheckFd(int fd)
return
(
poll
(
&
pfd
,
1
,
0
)
==
0
);
}
/*--------------------------------------------------------------------
* Manage a pool of vbc structures.
* XXX: as an experiment, make this caching controlled by a parameter
* XXX: so we can see if it has any effect.
*/
static
struct
vbc
*
vbe_NewConn
(
void
)
{
struct
vbc
*
vc
;
vc
=
MPL_Get
(
vbcpool
,
NULL
);
XXXAN
(
vc
);
vc
->
magic
=
VBC_MAGIC
;
vc
->
fd
=
-
1
;
return
(
vc
);
}
/*--------------------------------------------------------------------
* Test if backend is healthy and report when it last changed
*/
...
...
@@ -301,9 +283,10 @@ vbe_GetVbe(struct busyobj *bo, struct vbe_dir *vs)
return
(
NULL
);
}
vc
=
vbe_NewConn
();
assert
(
vc
->
fd
==
-
1
);
AZ
(
vc
->
backend
);
vc
=
MPL_Get
(
vbcpool
,
NULL
);
XXXAN
(
vc
);
vc
->
magic
=
VBC_MAGIC
;
vc
->
fd
=
-
1
;
bes_conn_try
(
bo
,
vc
,
vs
);
if
(
vc
->
fd
<
0
)
{
VBE_ReleaseConn
(
vc
);
...
...
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