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
e66c5eb5
Commit
e66c5eb5
authored
May 08, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid TRUST_ME in shard director
parent
95ab1c57
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
shard_cfg.c
lib/libvmod_directors/shard_cfg.c
+2
-2
shard_dir.h
lib/libvmod_directors/shard_dir.h
+4
-1
No files found.
lib/libvmod_directors/shard_cfg.c
View file @
e66c5eb5
...
...
@@ -293,8 +293,8 @@ shardcfg_hashcircle(struct sharddir *shardd, VCL_INT replicas)
static
void
shardcfg_backend_free
(
struct
shard_backend
*
f
)
{
if
(
f
->
ident
)
free
(
TRUST_ME
(
f
->
ident
)
);
if
(
f
->
freeptr
)
free
(
f
->
freeptr
);
memset
(
f
,
0
,
sizeof
(
*
f
));
}
...
...
lib/libvmod_directors/shard_dir.h
View file @
e66c5eb5
...
...
@@ -57,7 +57,10 @@ struct shard_circlepoint {
struct
shard_backend
{
VCL_BACKEND
backend
;
const
char
*
ident
;
// XXX COPY IN !
union
{
const
char
*
ident
;
void
*
freeptr
;
};
VCL_DURATION
rampup
;
uint32_t
canon_point
;
};
...
...
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