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
6b4267b4
Commit
6b4267b4
authored
Nov 27, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
White space polish
parent
b7a9b035
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
vsc_f_main.h
include/tbl/vsc_f_main.h
+5
-5
generate.py
lib/libvcc/generate.py
+2
-2
vmod.vcc
lib/libvmod_std/vmod.vcc
+3
-3
No files found.
include/tbl/vsc_f_main.h
View file @
6b4267b4
...
@@ -311,7 +311,7 @@ VSC_F(sess_dropped, uint64_t, 0, 'c', info,
...
@@ -311,7 +311,7 @@ VSC_F(sess_dropped, uint64_t, 0, 'c', info,
VSC_F
(
n_object
,
uint64_t
,
1
,
'i'
,
info
,
VSC_F
(
n_object
,
uint64_t
,
1
,
'i'
,
info
,
"object structs made"
,
"object structs made"
,
"Number of object structs made"
"Number of object structs made"
)
)
VSC_F
(
n_vampireobject
,
uint64_t
,
1
,
'i'
,
diag
,
VSC_F
(
n_vampireobject
,
uint64_t
,
1
,
'i'
,
diag
,
"unresurrected objects"
,
"unresurrected objects"
,
...
@@ -319,15 +319,15 @@ VSC_F(n_vampireobject, uint64_t, 1, 'i', diag,
...
@@ -319,15 +319,15 @@ VSC_F(n_vampireobject, uint64_t, 1, 'i', diag,
)
)
VSC_F
(
n_objectcore
,
uint64_t
,
1
,
'i'
,
info
,
VSC_F
(
n_objectcore
,
uint64_t
,
1
,
'i'
,
info
,
"objectcore structs made"
,
"objectcore structs made"
,
"Number of objectcore structs made"
"Number of objectcore structs made"
)
)
VSC_F
(
n_objecthead
,
uint64_t
,
1
,
'i'
,
info
,
VSC_F
(
n_objecthead
,
uint64_t
,
1
,
'i'
,
info
,
"objecthead structs made"
,
"objecthead structs made"
,
"Number of objecthead structs made"
"Number of objecthead structs made"
)
)
VSC_F
(
n_waitinglist
,
uint64_t
,
1
,
'i'
,
debug
,
VSC_F
(
n_waitinglist
,
uint64_t
,
1
,
'i'
,
debug
,
"waitinglist structs made"
,
"waitinglist structs made"
,
"Number of waitinglist structs made"
"Number of waitinglist structs made"
)
)
VSC_F
(
n_backend
,
uint64_t
,
0
,
'i'
,
info
,
VSC_F
(
n_backend
,
uint64_t
,
0
,
'i'
,
info
,
...
@@ -347,7 +347,7 @@ VSC_F(n_lru_nuked, uint64_t, 0, 'i', info,
...
@@ -347,7 +347,7 @@ VSC_F(n_lru_nuked, uint64_t, 0, 'i', info,
)
)
VSC_F
(
n_lru_moved
,
uint64_t
,
0
,
'i'
,
diag
,
VSC_F
(
n_lru_moved
,
uint64_t
,
0
,
'i'
,
diag
,
"Number of LRU moved objects"
,
"Number of LRU moved objects"
,
"Number of move operations done on the LRU list."
"Number of move operations done on the LRU list."
)
)
VSC_F
(
losthdr
,
uint64_t
,
0
,
'a'
,
info
,
VSC_F
(
losthdr
,
uint64_t
,
0
,
'a'
,
info
,
...
...
lib/libvcc/generate.py
View file @
6b4267b4
...
@@ -564,9 +564,9 @@ sp_variables = [
...
@@ -564,9 +564,9 @@ sp_variables = [
'INT'
,
'INT'
,
(
'hit'
,
'deliver'
,),
(
'hit'
,
'deliver'
,),
(
),
"""
(
),
"""
The count of cache-hits on this object. A value of 0 indicates a
The count of cache-hits on this object. A value of 0 indicates a
cache miss.
cache miss.
"""
"""
),
),
(
'obj.http.'
,
(
'obj.http.'
,
'HEADER'
,
'HEADER'
,
...
...
lib/libvmod_std/vmod.vcc
View file @
6b4267b4
...
@@ -126,7 +126,7 @@ Description
...
@@ -126,7 +126,7 @@ Description
*fallback* will be returned.
*fallback* will be returned.
Example
Example
| if (std.integer(beresp.http.x-foo, 0) > 5) {
| if (std.integer(beresp.http.x-foo, 0) > 5) {
|
...
| ...
| }
| }
$Function IP ip(STRING s, IP fallback)
$Function IP ip(STRING s, IP fallback)
...
@@ -137,7 +137,7 @@ Description
...
@@ -137,7 +137,7 @@ Description
fails, *fallback* will be returned.
fails, *fallback* will be returned.
Example
Example
| if (std.ip(req.http.X-forwarded-for, "0.0.0.0") ~ my_acl) {
| if (std.ip(req.http.X-forwarded-for, "0.0.0.0") ~ my_acl) {
|
...
| ...
| }
| }
$Function REAL real(STRING s, REAL fallback)
$Function REAL real(STRING s, REAL fallback)
...
@@ -224,7 +224,7 @@ Description
...
@@ -224,7 +224,7 @@ Description
Note that the comparison is case sensitive.
Note that the comparison is case sensitive.
Example
Example
| if (std.strstr(req.url, req.http.x-restrict)) {
| if (std.strstr(req.url, req.http.x-restrict)) {
|
...
| ...
| }
| }
...
...
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