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
7b60fe7d
Commit
7b60fe7d
authored
Sep 12, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Init the correct rwlock
parent
174ca62a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
cache_vcl.c
bin/varnishd/cache/cache_vcl.c
+1
-2
No files found.
bin/varnishd/cache/cache_vcl.c
View file @
7b60fe7d
...
...
@@ -910,14 +910,13 @@ vcl_cli_label(struct cli *cli, const char * const *av, void *priv)
bprintf
(
lbl
->
state
,
"%s"
,
VCL_TEMP_LABEL
);
lbl
->
temp
=
VCL_TEMP_WARM
;
REPLACE
(
lbl
->
loaded_name
,
av
[
2
]);
AZ
(
errno
=
pthread_rwlock_init
(
&
vc
l
->
temp_rwl
,
NULL
));
AZ
(
errno
=
pthread_rwlock_init
(
&
lb
l
->
temp_rwl
,
NULL
));
VTAILQ_INSERT_TAIL
(
&
vcl_head
,
lbl
,
list
);
}
if
(
lbl
->
label
!=
NULL
)
lbl
->
label
->
nlabels
--
;
lbl
->
label
=
vcl
;
vcl
->
nlabels
++
;
return
;
}
static
void
__match_proto__
(
cli_func_t
)
...
...
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