Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
Commits
b33efe4c
Commit
b33efe4c
authored
Jul 17, 2012
by
Dag Haavi Finstad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow 'storage' in backend identifiers.
Fixes: #1164
parent
c2888919
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
1 deletion
+24
-1
r01164.vtc
bin/varnishtest/tests/r01164.vtc
+23
-0
vcc_compile.c
lib/libvcl/vcc_compile.c
+1
-1
No files found.
bin/varnishtest/tests/r01164.vtc
0 → 100644
View file @
b33efe4c
varnishtest "Regression test for #1163: allow backends to be named storage*"
varnish v1 -vcl {
backend storage_foo {
.host = "127.0.0.1";
}
sub vcl_recv {
set req.backend = storage_foo;
}
}
varnish v1 -vcl {
backend storagefoo {
.host = "127.0.0.1";
}
sub vcl_recv {
set req.backend = storagefoo;
}
}
lib/libvcl/vcc_compile.c
View file @
b33efe4c
...
@@ -599,7 +599,7 @@ vcc_CompileSource(const struct vcc *tl0, struct vsb *sb, struct source *sp)
...
@@ -599,7 +599,7 @@ vcc_CompileSource(const struct vcc *tl0, struct vsb *sb, struct source *sp)
sym
->
r_methods
=
v
->
r_methods
;
sym
->
r_methods
=
v
->
r_methods
;
}
}
sym
=
VCC_AddSymbolStr
(
tl
,
"storage"
,
SYM_WILDCARD
);
sym
=
VCC_AddSymbolStr
(
tl
,
"storage
.
"
,
SYM_WILDCARD
);
sym
->
wildcard
=
vcc_Stv_Wildcard
;
sym
->
wildcard
=
vcc_Stv_Wildcard
;
vcl_output_lang_h
(
tl
->
fh
);
vcl_output_lang_h
(
tl
->
fh
);
...
...
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