Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-all_healthy
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
libvmod-all_healthy
Commits
048ba45c
Unverified
Commit
048ba45c
authored
Aug 01, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support backend reference counting
parent
bd18be27
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
vmod_all_healthy.c
src/vmod_all_healthy.c
+9
-4
No files found.
src/vmod_all_healthy.c
View file @
048ba45c
...
...
@@ -96,13 +96,18 @@ vmod_director__init(VRT_CTX,
}
VCL_VOID
vmod_director__fini
(
struct
vmod_all_healthy_director
**
dp
)
{
vmod_director__fini
(
struct
vmod_all_healthy_director
**
dp
)
{
struct
vmod_all_healthy_director
*
d
=
*
dp
;
int
i
;
*
dp
=
NULL
;
if
(
d
==
NULL
)
return
;
CHECK_OBJ
(
d
,
VMOD_ALL_HEALTHY_DIRECTOR_MAGIC
);
for
(
i
=
0
;
i
<
d
->
nconsider
;
i
++
)
VRT_Assign_Backend
(
&
d
->
consider
[
i
],
NULL
);
VRT_Assign_Backend
(
&
d
->
backend
,
NULL
);
VRT_DelDirector
(
&
d
->
dir
);
free
(
TRUST_ME
(
d
->
consider
));
FREE_OBJ
(
d
);
...
...
@@ -145,9 +150,9 @@ vmod_director_consider(VRT_CTX,
d
->
spcconsider
=
i
;
d
->
consider
=
n
;
}
d
->
consider
[
d
->
nconsider
++
]
=
b
;
VRT_Assign_Backend
(
&
d
->
consider
[
d
->
nconsider
++
],
b
)
;
if
(
d
->
backend
==
NULL
)
d
->
backend
=
b
;
VRT_Assign_Backend
(
&
d
->
backend
,
b
)
;
}
VCL_VOID
...
...
@@ -163,7 +168,7 @@ vmod_director_set_backend(VRT_CTX,
return
;
}
d
->
backend
=
b
;
VRT_Assign_Backend
(
&
d
->
backend
,
b
)
;
}
VCL_BACKEND
...
...
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