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
00101351
Commit
00101351
authored
Aug 31, 2011
by
Poul-Henning Kamp
Committed by
Tollef Fog Heen
Sep 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow relational comparisons on REAL type.
Fixes #1002
parent
277dee34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
r01002.vtc
bin/varnishtest/tests/r01002.vtc
+12
-0
vcc_expr.c
lib/libvcl/vcc_expr.c
+1
-0
No files found.
bin/varnishtest/tests/r01002.vtc
0 → 100644
View file @
00101351
varnishtest "Real relational comparisons"
varnish v1 -vcl {
import std from "${topbuild}/lib/libvmod_std/.libs/libvmod_std.so" ;
backend foo { .host = "${bad_ip}"; }
sub vcl_recv {
if (std.random(0,5) < 1.0) {
return (pipe);
}
}
}
lib/libvcl/vcc_expr.c
View file @
00101351
...
...
@@ -886,6 +886,7 @@ static const struct cmps {
NUM_REL
(
INT
),
NUM_REL
(
DURATION
),
NUM_REL
(
BYTES
),
NUM_REL
(
REAL
),
{
STRING
,
T_EQ
,
"!VRT_strcmp(
\v
1,
\v
2)"
},
{
STRING
,
T_NEQ
,
"VRT_strcmp(
\v
1,
\v
2)"
},
...
...
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