Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
varnishevent
Commits
4e59feca
Commit
4e59feca
authored
Dec 12, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the -C CLI option
parent
0f476259
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
README.rst
README.rst
+3
-0
vslarg.sh
src/test/vslarg.sh
+8
-0
varnishevent.c
src/varnishevent.c
+2
-1
No files found.
README.rst
View file @
4e59feca
...
@@ -58,6 +58,9 @@ OPTIONS
...
@@ -58,6 +58,9 @@ OPTIONS
When writing to a file, append to it rather than overwrite it.
When writing to a file, append to it rather than overwrite it.
-C
Do all regular expression and string matching caseless.
-d
-d
Start processing log records at the head of the log instead of the tail.
Start processing log records at the head of the log instead of the tail.
...
...
src/test/vslarg.sh
View file @
4e59feca
...
@@ -76,4 +76,12 @@ if [ "$?" != "1" ]; then
...
@@ -76,4 +76,12 @@ if [ "$?" != "1" ]; then
exit
1
exit
1
fi
fi
echo
"... -C"
CKSUM
=
$(
../varnishevent
-C
-q
'ReqURL ~ "_STATIC"'
-r
${
IN
}
-l
${
LOG
}
|
cksum
)
if
[
"
$CKSUM
"
!=
'3256944209 830'
]
;
then
echo
"ERROR: -q query unexpected cksum:
$CKSUM
"
exit
1
fi
exit
0
exit
0
src/varnishevent.c
View file @
4e59feca
...
@@ -617,7 +617,7 @@ main(int argc, char *argv[])
...
@@ -617,7 +617,7 @@ main(int argc, char *argv[])
CONF_Init
();
CONF_Init
();
read_default_config
();
read_default_config
();
while
((
c
=
getopt
(
argc
,
argv
,
"adDhvVP:w:F:g:f:q:r:n:N:L:T:l:"
))
!=
-
1
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"a
C
dDhvVP:w:F:g:f:q:r:n:N:L:T:l:"
))
!=
-
1
)
{
switch
(
c
)
{
switch
(
c
)
{
case
'a'
:
case
'a'
:
a_flag
=
1
;
a_flag
=
1
;
...
@@ -684,6 +684,7 @@ main(int argc, char *argv[])
...
@@ -684,6 +684,7 @@ main(int argc, char *argv[])
break
;
break
;
case
'L'
:
case
'L'
:
case
'T'
:
case
'T'
:
case
'C'
:
if
((
errnum
=
VSL_Arg
(
vsl
,
c
,
optarg
))
<
0
)
{
if
((
errnum
=
VSL_Arg
(
vsl
,
c
,
optarg
))
<
0
)
{
fprintf
(
stderr
,
"%s
\n
"
,
VSL_Error
(
vsl
));
fprintf
(
stderr
,
"%s
\n
"
,
VSL_Error
(
vsl
));
usage
(
EXIT_FAILURE
);
usage
(
EXIT_FAILURE
);
...
...
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