Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-cluster
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-cluster
Commits
39cc8d5c
Commit
39cc8d5c
authored
Mar 19, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve enum to string
parent
105904e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
vmod_cluster.c
src/vmod_cluster.c
+7
-1
No files found.
src/vmod_cluster.c
View file @
39cc8d5c
...
...
@@ -48,6 +48,12 @@ enum resolve_e {
_RESOLVE_E_MAX
};
static
const
char
*
const
resolve_s
[
_RESOLVE_E_MAX
]
=
{
#define VMODENUM(x) [x] = #x,
#include "tbl_resolve.h"
[
_RESOLVE_E_INVALID
]
=
"*invalid*"
,
};
static
enum
resolve_e
parse_resolve_e
(
VCL_ENUM
e
)
{
...
...
@@ -507,7 +513,7 @@ cluster_choose(VRT_CTX,
if
(
resolve
==
LAZY
&&
(
ctx
->
method
&
cluster_methods
)
==
0
)
{
VRT_fail
(
ctx
,
"cluster.backend(resolve=%s)"
" can not be called here"
,
arg
->
resolve
);
" can not be called here"
,
resolve_s
[
resolve
]
);
return
NULL
;
}
...
...
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